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 Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/250730-variable/#findComment-1286387 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.