• 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

401 Unauthorized only occurring on some pages in Laravel 8

Read users and passwords from a txt file

Failing validation doesn't stop code execution in livewire component

how to display a view on laravel 8 and not have a 404 NOT FOUND page?

Laravel: HTML in notification

enroll_table three field fetch to payment form to create payment field in laravel 5.5

Yii2: How do I debug console commands?

Assets not referencing to public folder (Laravel)

Phpunit partial mock + proxy Entity

PHP mail function is sending blank message body

How to put php code inside opening and closing shortcodes

PHPMetrics option --excluded-dirs="myfolder" : myfolder dir is not excluded within docker

Is it possible to re-use an array taken from PHP via JSON in a $.ajax function?

Combining a describing and one array with data

How to install ZeroMQ for PHP on an Alpine Linux container?

About Contact Privacy policy Terms and conditions