[PHP] ord()

ord() (funzione PHP) restituisce il valore ASCII (0-255) del primo carattere di una stringa.

tips&tricks

Cfr. la tabella ASCII

Sintassi

ord($stringa)
parametro descrizione
$stringa La stringa da processare

Esempi

echo ord("c"); // 99
echo ord("ciao"); // 99

Contenuti correlati

  • CSS
  • HTML
  • JavaScript
  • jQuery
  • PHP
  • SQL
  • WORDPRESS

Fonti esterne

funzioni php, php

Related Articles

0 Comment