0o0o0 Posted June 12, 2015 Share Posted June 12, 2015 I know im very lazy today, I did 7 searches no direct answer.. $own = "#FFFFFF";if ($Owner == 'Ryan O'neill') $own = "#00FF00"; ** how does one use the ' in O'neill as the name and not get mistaken for ending in code? is it /' or /*' or ?? outta guesses. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/296767-finding-words-with-in-them-and-not-mistaken-them-for-code/ Share on other sites More sharing options...
Solution requinix Posted June 12, 2015 Solution Share Posted June 12, 2015 Backslash. Or use different quotes for the string. 'Ryan O\'neill' "Ryan O'neill" Quote Link to comment https://forums.phpfreaks.com/topic/296767-finding-words-with-in-them-and-not-mistaken-them-for-code/#findComment-1513713 Share on other sites More sharing options...
0o0o0 Posted June 12, 2015 Author Share Posted June 12, 2015 pfft how lazy and slow am i " " sorry Quote Link to comment https://forums.phpfreaks.com/topic/296767-finding-words-with-in-them-and-not-mistaken-them-for-code/#findComment-1513714 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.