• 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

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

AJAX call fails with SyntaxError: Unexpected end of JSON input

Pass an image through AJAX [duplicate]

Add Metadata, headers (Expires, CacheControl) to a file uploaded to Amazon S3 using the Laravel 5.0 Storage facade

how to pass row id in href of a tag in codeigniter controller?

PHPUnit gives error: Target [IlluminateContractsViewFactory] is not instantiable

Normalize DateInterval in PHP

WordPress Security Standards want me to escape my html, but how to do it correctly?

Laravel query builder binding parameters more than once

Server-sent events in PHP (without echo or print)

How can I format this number correctly using PHP?

Symfony autowiring issues since docker update

Issue saving card for customer

Laravel update hasMany relationship using saveMany

Debugging Stripe Webhook Event

About Contact Privacy policy Terms and conditions