brad,
Thank you AGAIN...
The information is coming from an excel file which I am saving into a database. Not my idea, but that's what they want.
When it spits it out, it will provide the user with the code.
I tried it out, but I am unsure if I am doing something wrong:
function setgraph($str) {
preg_match_all('/<graph\s+type=["\'](.*)["\']\s+id=["\'](.*)["\']\s+>/iU', $str, $matches);
var_dump($matches);
}
setgraph('What a nice Day <graph type="1" id="12345">');
And I am getting the following output:
array(3) { [0]=> array(0) { } [1]=> array(0) { } [2]=> array(0) { } }
Any thoughts?