• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

how to use extended ASCII instead of unicode in PHP

phpvisual-foxpro


PHP Snippet 1:

SUBSTR(key,1,1)

PHP Snippet 2:

$clAve[0]

PHP Snippet 3:

function Encripta($teXto){
    $clAve = ")&H%\$V1#@^+=?/><:MN*-";
    $teXtoenc = "";
    $c = 0;
    for($j = 0; $j < strlen($teXto); $j++){
        $leTra = (ord($teXto[$j]) + ord($clAve[$c])) % 256;
        $c ++;
        $teXtoenc .= chr($leTra);
        if($c >= strlen($clAve))
            $c = 0;
    }
    return $teXtoenc;
}
?>

PHP Snippet 4:

72 38 / 111 72 / 108 37 / 97 36 

PHP Snippet 5:

72 41 / 111 38 / 108 72 / 97 37

Related Snippets

PHP if in_array() how to get the key as well?

Whats the point of running Laravel with the command 'php artisan serve'?

Could not decode a text frame as UTF-8.

MISSING UPDATES FOR: MEDIA Drupal 9

Printing more than one array using print_r or any other function in php

Handling expired token in Laravel

Android Volley getParams() method not getting called for JsonObjectRequest

I want to store data in new index as per my key in php [duplicate]

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

get folder directory from input type file - PHP

Laravel Sanctum CSRF not authenticating

Transpose and flatten two-dimensional indexed array where rows may not be of equal length

Encrypt in php and decrypt in Dart(flutter)

Manage independently the decimal number of the price of each product [duplicate]

Symfony autowiring issues since docker update

About Contact Privacy policy Terms and conditions