• 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

enable Apache http Authorization header

How to solve cURL error 60: SSL certificate in Laravel 5 while Facebook authentication

Any AWS EB Laravel route getting 404 Not Found nginx/1.16.1

Jquery DataTables: Data not displaying in table via Ajax

How to convert a carbon into string, to take the date only?

Symfony Error: "An exception has been thrown during the rendering of a template"

protect my blog content

Performance of foreach, array_map with lambda and array_map with static function

How to make autocomplete work in foreach php loop? (vscode, intellisense)

CodeIgniter 3 is generating a session file on each request, why?

Laravel - Implicit route model binding with soft deleted data

How To Access A Column In M-M Relationship Table In Laravel

Unable to run composer install

How do I upload a laravel project on cPanel shared hosting?

What is the function of the (new Date()).getTime() in PHP?

About Contact Privacy policy Terms and conditions