• 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

How to loop a tree array with unknown depth and get array blocks?

Doctrine ORM: Excluding Records Based on Values of Nested Relationships

Laravel database insert with combining array and string

how to fix Service provider class not found when using repository?

How can i update or reset my password without entering email field in laravel-8?

Search for array row with specific column value and return another value from qualifying row

Calculating Median of an array in PHP

how to make my own auto increment in php?

ConstraintViolationListInterface to Exception in Symfony

Why i get wrong output for html markdown?

PHP Startup Unable to load dynamic library /usr/lib/php/20151012/php_mysqli.dll

Dropdown with current value from Mysql

WooCommerce Subscriptions: Remove role on cancelled subscription

onKeyUp event calculation not working on the following rows from php generated forms except the first one

Laravel whole batch is cancelled if one Job fails

About Contact Privacy policy Terms and conditions