• 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 update array value in Laravel

is there any way to validate a field that sometime is File(image) && sometime is String(Src of same image)

phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

How to to send mail using gmail in Laravel?

Facebook PHP SDK - will not logout properly

Form repeater send wrong data with last element in Laravel

Ajax GET request fails in laravel 8

How to Create WooCommerce Subscription Product via. REST API?

PHP 8 - libxml_disable_entity_loader() has been deprecated. How do I replace the functionality it provides?

How avoid Moved Permanently The document has moved here

Pass an image through AJAX [duplicate]

advanced custom fields wordpress custom class

html-php form submission after validation through JavaScript [closed]

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

Laravel display validation error

About Contact Privacy policy Terms and conditions