• 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

Convert regular text to array using notepad++

PHP DOTENV unable to load env vars

Insert And Retrieve Data in MySQL with $.post Noob Question

Prestashop webservice API creating cart rules

Autoloading classes in PHPUnit using Composer and autoload.php

enable Apache http Authorization header

Server-sent events in PHP (without echo or print)

Add New Parameter to Existing URL using htaccess

Problem with fetching data from database in Laravel

Center point of multiple gps coordinates with php

Laravel print last executed SQL query with Query log

Laravel - Implicit route model binding with soft deleted data

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

Doctrine 2 mapping referencing unique key

JQuery content editable div and text box on submit not sending POST

About Contact Privacy policy Terms and conditions