split, ereg_replace, ect

From: Date: Fri, 04 Aug 2000 10:44:34 +0000
Subject: split, ereg_replace, ect
Groups: php.general 
Request: Send a blank email to php-general+get-10099@lists.php.net to get a copy of this message
hi. i have a script that nead to map HTML element in array that contail his properties. for exemple this tag: <img align=left alt="just a sample"> into: $element["align"] = "left"; $element["alt"] = "just a sample"; first i used split(" ",$string), and again spliting the result by "=". but this is not good idea coz the ' or " char. does some one know how i can do it? thanks moshe.

« previous php.general (#10099) next »