note 34310 deleted from function.parse-url by didou

From: Date: Thu, 09 Oct 2003 13:12:16 +0000
Subject: note 34310 deleted from function.parse-url by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58124@lists.php.net to get a copy of this message
Note Submitter: php_nospam@freakstuff.de ---- to robemerick at vegasidx dot com: You can write a small wrapper function, for example: function parse_url2($url) { $parts_default = array( "scheme" => "", "host" => "", "port" => "", "user" => "", "pass" => "", "path" => "", "query" => "", "fragment" => "" ); return array_merge($parts_default, parse_url($url)); } now all array elements are set and you'll not get any warnings when notices are enabled.

« previous php.notes (#58124) next »