• 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

Yii2: How to download backup files using spanjeta/yii2-backup?

How can I get user id from session in javascript?

Target Laravelista is not instantiable

WAMP/Wordpress - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

Combine array with same value and add other [duplicate]

curl returning 301 error after migrating to https

Image upload not working through ajax Laravel

Laravel dosen't connect with Oracle

Laravel Nova, route not found

How to add automatically collapse/expand in content wordpress (single.php)?

I'm trying to use curl with php but getting this error:Could not resolve host: Bearer

java URL working on browser but not in client program

MySQL order by field in Eloquent

How to properly start Laravel 8 with Bootstrap & authentication

Convert every two values of an associative array into key-value pairs

About Contact Privacy policy Terms and conditions