I am making a script that uses various preg_match_all and I want to derive users/user from: "more code here key=users/user more code here"
Once I get the key name, I want to use it in xpath/dom with php to do a query, such that:
$childs = $xpath->query($_wherePre . "[" . $whereClause . "]");
$_wherePre would be the derived key name, with some added trim functions, etc. and $whereClause represents attribute where clauses given in a loop (this part works fine)
It's the $_wherePre I can't get to work. I've done debugging and when I enter: $_wherePre = "users/user"; into my php script, it works fine... but when I enter $_wherePre = trim($derivedKey); I get a bunch of coding errors stating that the file could not be loaded. I tried messing with the string types: object, string. Is there anything that I can do that'll make this derived key instantiate the xml file connection?
Answers will definitely get chosen as best! PLEASE help!!!!
Once I get the key name, I want to use it in xpath/dom with php to do a query, such that:
$childs = $xpath->query($_wherePre . "[" . $whereClause . "]");
$_wherePre would be the derived key name, with some added trim functions, etc. and $whereClause represents attribute where clauses given in a loop (this part works fine)
It's the $_wherePre I can't get to work. I've done debugging and when I enter: $_wherePre = "users/user"; into my php script, it works fine... but when I enter $_wherePre = trim($derivedKey); I get a bunch of coding errors stating that the file could not be loaded. I tried messing with the string types: object, string. Is there anything that I can do that'll make this derived key instantiate the xml file connection?
Answers will definitely get chosen as best! PLEASE help!!!!