detecting \ in a string
Posted: Fri Jan 06, 2006 12:47 pm
Any one have any ideas?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
if (strpos($yourstring, '\\') === FALSE) {
echo 'Your string does not contain \\';
} else {
echo 'Your string does contain \\';
}
?>