• 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

get attribute from class not working php 7

Trying to iterate over a mongodb cursor twice - failing

Normalize DateInterval in PHP

How to submit the custom form data in database in WordPress without plugin using ajax?

Add Metadata, headers (Expires, CacheControl) to a file uploaded to Amazon S3 using the Laravel 5.0 Storage facade

Laravel print last executed SQL query with Query log

Convert regular text to array using notepad++

Symfony - "framework.test" config is not set to true

Which is faster php date functions or carbon?

Query Optimization, changing the queries in the loop into a single processing query

Exact alternate to mcrypt_encrypt in PHP 7.2

Check if user online laravel

Object of class stdClass could not be converted to string error

AJAX call fails with SyntaxError: Unexpected end of JSON input

Show rotation of tweets using current day of month

About Contact Privacy policy Terms and conditions