If you have a list of items (for example)......
parse_str() is fine for simple stuff but it's not the same as PHP's built way of creating the $_GET magic variable. Why?!?......
This way useful for create mixed arguments function. function foo() { $args = func_get_args(); print_r($args); } foo(1, 1256, 6, 17); //mixed ... -------------------Out-...
This function check if an e-mail address is valid or not. function valid_email($email) { return preg_match('/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/', $email);...