• 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

Adding reCAPTCHA v2 into my PHP file

Access relation of pivot table in Laravel

PHP Imap , php 7.4.3 on mac osx catalina

how can I set a session variable in Drupal 8 and get it in a php script?

Wordpress 'post_type_link' hides permalink

SilverStripe unable to populate multiple member Childs

Laravel: Create morphs() relationship nullable

Explain how this array transposing and flattening function works

Laravel Unresolvable dependency resolving [Parameter #0 [ <required> $method ]] in class GuzzleHttpPsr7Request

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

SlimExceptionHttpNotFoundException

Doctrine 2 mapping referencing unique key

I want to use codeigniter foreign character library in my custom PHP project how i can use it?

PHP Deprecated issue when running artisan command

How to map the two arrays with a duplicate value?

About Contact Privacy policy Terms and conditions