• 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

Assign output of PHP function to a variable

Prevent blank space in pdf pages (DomPdf)

Wordpress add responsive srcset header image to theme

Distribute array row data to make multiple new rows

PHPMyAdmin not working as intended at remote server. Error 500, $respond not found

Updating and Synchronizing Woocommerce Subscriptions to Custom Date

protect my blog content

How can I access an array/object?

Check for PDO Results, If None Display Message, If Yes then Loop Through

Webscraping Symfony/Panther: Can't get HTML

How to map the two arrays with a duplicate value?

Converting array to string and then back in PHP

Backend cannot be reached after Typo3 login screen

Get Header Authorization value of a login api (sent with username and password in json body) using php curl

How do I Post to .txt document before form submits

About Contact Privacy policy Terms and conditions