sphinx Posted November 8, 2011 Share Posted November 8, 2011 Hello, echo "| $matches[0] |"; How can I make both the '|' only show if the $matches variable displaying? Thanks Link to comment https://forums.phpfreaks.com/topic/250730-variable/ Share on other sites More sharing options...
requinix Posted November 8, 2011 Share Posted November 8, 2011 Only print the stuff if $matches[0] isn't empty. Link to comment https://forums.phpfreaks.com/topic/250730-variable/#findComment-1286375 Share on other sites More sharing options...
redarrow Posted November 8, 2011 Share Posted November 8, 2011 read this mate will help. http://tuxradar.com/practicalphp/3/12/4 ? <<<<< if : <<<<< else Link to comment https://forums.phpfreaks.com/topic/250730-variable/#findComment-1286387 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.