ctype_graph -- Vérifie qu'une chaîne est imprimable
Description
bool ctype_graph ( string text )
ctype_graph() vérifie si tous les caractères
de la chaîne text ont une représentation
graphique, et créeront une impression sur l'écran (les espaces
n'en font pas partie).
Liste de paramètres
text
La chaîne testée.
Valeurs de retour
Retourne TRUE si tous les caractères de text
ont une représentation graphique et créeront une impression sur l'écran,
FALSE sinon.
Exemples
Exemple 1. Exemple avec ctype_graph()
<?php $strings = array('string1' => "asdf\n\r\t", 'string2' => 'arf12', 'string3' => 'LKA#@%.54'); foreach ($strings as $name => $testcase) { if (ctype_graph($testcase)) { echo "La chaîne '$name' ne contient que des caractères imprimables.\n"; } else { echo "La chaîne '$name' ne contient pas que des caractères imprimables.\n"; } } ?>
L'exemple ci-dessus va afficher :
La chaîne 'string1' ne contient pas que des caractères imprimables.
La chaîne 'string2' ne contient que des caractères imprimables.
La chaîne 'string3' ne contient que des caractères imprimables.
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 644
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 644
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/stefvar.com/public_html/modules/Multiheadlines/functions.php on line 355