• 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

Laravel: HTML in notification

php file upload scanning using clamav, permissions on /tmp/

javascript html popup window

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

PHP array sort and remove duplicates by two field values

Lumen - Postgresql setup - Composer

woocommerce_wp_select options array from product attribute terms

Add restriction to WooCommerce coupons by allowed user ID

Whats the point of running Laravel with the command 'php artisan serve'?

Center point of multiple gps coordinates with php

How to put php code inside opening and closing shortcodes

Can I use a WooCommerce function without any WooCommerce page?

Laravel Passport - Not able to get token string in response?

Laravel whole batch is cancelled if one Job fails

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

About Contact Privacy policy Terms and conditions