NYCPHP Meetup

NYPHP.org

[nycphp-talk] What are ? and :

Aaron Fischer agfische at email.smith.edu
Fri Sep 30 12:36:49 EDT 2005


I am in the process of reading through the PHundamentals article titled 
"Functions for Storing Data Submitted From a Form and Displaying Data 
from a Database" and have run into two symbols that I am unclear about 
in the fix_magic_quotes function.
http://www.nyphp.org/phundamentals/storingretrieving.php

The symbols in question are ? and :

The lines where they are used:

1)  $argv = isset($_SERVER['argv']) ? $_SERVER['argv'] : NULL;

2)  return $sybase ? str_replace ('\'\'', '\'', $var) : stripslashes ($var);

Would appreciate an explanation of the usage of the symbols and their 
use in the context of these two lines.

Thanks,

-Aaron




More information about the talk mailing list