note 106545 added to domxpath.query
| From: | imoore76 at yahoo dot com | Date: | Thu, 17 Nov 2011 18:28:11 +0000 |
| Subject: | note 106545 added to domxpath.query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184546@lists.php.net to get a copy of this message | ||
Ooops, that was broken :) This works:
<?php
function xpathConcatEscape($string) {
return
"concat(".str_replace(array("'',",",''"),
"",
"'".implode("',\"'\",'",explode("'",$string))."'")
.")";
}
?>
Again.. I hate xpath :( This should not be needed.
----
Server IP: 192.41.42.26
Probable Submitter: 76.100.54.244
----
Manual Page -- http://www.php.net/manual/en/domxpath.query.php
Edit -- https://master.php.net/note/edit/106545
Del: integrated -- https://master.php.net/note/delete/106545/integrated
Del: useless -- https://master.php.net/note/delete/106545/useless
Del: bad code -- https://master.php.net/note/delete/106545/bad+code
Del: spam -- https://master.php.net/note/delete/106545/spam
Del: non-english -- https://master.php.net/note/delete/106545/non-english
Del: in docs -- https://master.php.net/note/delete/106545/in+docs
Del: other reasons-- https://master.php.net/note/delete/106545
Reject -- https://master.php.net/note/reject/106545
Search -- https://master.php.net/manage/user-notes.php