• 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

Additional price based on cart item count in WooCommerce

If you intend you use SMTP, add your SMTP Code after this Line

Display a product custom field only in WooCommerce Admin single orders

php echo xml documents with header

Laravel s3 upload file with metadata using pre-signed url

Malformed MIME header error in Symfony 5.3

Filter WooCommerce related products by Polylang language

php echo remove slashes from url [duplicate]

Remove country code from phone number?

MySQL/PHP - Web Based Game -User specific inventory table or 1 giant table? Another option?

how to display a view on laravel 8 and not have a 404 NOT FOUND page?

Minimum order amount except for specific shipping method in WooCommerce

Laravel/docker-compose/redis - Class 'Redis' not found

Inserting data into SQL Server Db An Invalid direction was specified

get attribute from class not working php 7

About Contact Privacy policy Terms and conditions