• 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

I'm trying to write a clean url for my website using the $_SERVER['REQUEST_URI'] in php

Sync Records With Default Values in Pivot Tables, Call to undefined method syncWithPivotDefaults()

Laravel: Why is my variable not being set while it's in the construct function of the controller?

javascript html popup window

Dynamic table in HTML using MySQL and php

xdebug 3 not working in ubuntu 20.04 with docker

Reducing authentication calls on external API (Laravel 5.6)

Group data in a multidimensional array based on two columns

how to prevent float variables displaying as scientific notation when printing [duplicate]

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

Add a custom text for a particular product on specific email notification in Woocommerce

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

laravel 5.6 bulk inserting json data

how to sort by a custom appended relation to model

protect images from being copied

About Contact Privacy policy Terms and conditions