• 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

Getting error: CodeIgniterDatabaseBaseResult::getResult in CodeIgniter

Live search query using JS and PHP for QA forum

Telegram bot doesn't answer

Select option menu read from database and use it's values

jwt decode throws Invalid argument supplied for foreach() on php-jwt and codeignitor 4

Last order would be re-order in wooCommerce. How is it possible?

PHPExcel How to set conditional formatting to change cell background color based on cells values

How update php.ini on a Mac OS X Mojave?

How to use a PHP MVC Controller, one thats invoked by calling a URL, to call and execute more than one function? [duplicate]

add_action() function in wordpress not working [duplicate]

PHP SoapClient: set a namespace without prefix

Get sql.h error on MacOS 12 (Monterey) sqsrv and pdo_sqsrv drive installation

How to set a domain name with php artisan serve

Center point of multiple gps coordinates with php

PHP mail sending empty mails

About Contact Privacy policy Terms and conditions