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. 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...
requinix Posted June 12, 2015 Share Posted June 12, 2015 Backslash. Or use different quotes for the string. 'Ryan O\'neill' "Ryan O'neill" 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 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
Archived
This topic is now archived and is closed to further replies.