import random crap zend files
[hiphop-php.git] / hphp / test / zend / good / ext-ctype / ctype_punct_basic.php
blobc8076b4adc34e4578086607109df0fd78fdb15ec
1 <?php
2 /* Prototype : bool ctype_punct(mixed $c)
3 * Description: Checks for any printable character which is not whitespace
4 * or an alphanumeric character
5 * Source code: ext/ctype/ctype.c
6 */
8 echo "*** Testing ctype_punct() : basic functionality ***\n";
10 $orig = setlocale(LC_CTYPE, "C");
12 $c1 = '@!$*';
13 $c2 = 'hello, world!';
15 var_dump(ctype_punct($c1));
16 var_dump(ctype_punct($c2));
18 setlocale(LC_CTYPE, $orig);
20 ===DONE===