Nandini Posted March 22, 2011 Share Posted March 22, 2011 Hi i want to match $ symbol from the string. I am using the following script $str="ckj"; if(preg_match("/^$/",$str)) { echo "Dollar is found"; } else { echo "Not Found"; } Its not working fine. Can anyone help me out please. Quote Link to comment Share on other sites More sharing options...
MrXHellboy Posted March 22, 2011 Share Posted March 22, 2011 preg_match('@\$@', $str) Quote Link to comment Share on other sites More sharing options...
Nandini Posted March 22, 2011 Author Share Posted March 22, 2011 Superb Working fine thanq very much Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.