• 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

nginx err_connection_refused, can anyone help me?

Alert message after submitting form in PHP

Multiply each value in array using array_map function

Group data in a multidimensional array based on two columns

PHP - CURL using HTTPS [closed]

how to sort by a custom appended relation to model

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

Laravel 5.1 how to use {{ old('') }} helper on blade file for radio inputs

Twig - How to check if variable is a number / integer

Correctly determine if date string is a valid date in that format

CSV to PHP class properties

Check if string contains a value in array [duplicate]

MySQL - Connection failed: No route to host

How to get AJAX to post on second page?

Send POST data via raw JSON with Postman

About Contact Privacy policy Terms and conditions