ebchost Posted June 15, 2011 Share Posted June 15, 2011 how to write this code? If somthyng (string $image) is not image, or have no value, then $image = "http://www.somelink..."; Quote Link to comment https://forums.phpfreaks.com/topic/239468-if-image-is-not-picture-or-have-no-value-then/ Share on other sites More sharing options...
fugix Posted June 15, 2011 Share Posted June 15, 2011 if(empty($image)) { $image = "http://[email protected]/test"; } Quote Link to comment https://forums.phpfreaks.com/topic/239468-if-image-is-not-picture-or-have-no-value-then/#findComment-1230188 Share on other sites More sharing options...
ebchost Posted June 15, 2011 Author Share Posted June 15, 2011 if(empty($image)) { $image = "http://[email protected]/test"; } ok, thanks. if you remember example of geting images url, from text (rss feed) for input in data base, you help me in that problem? i $image string i have value somtimes, but is not corect url adress, in that case also, i want to giv new valu for $image Quote Link to comment https://forums.phpfreaks.com/topic/239468-if-image-is-not-picture-or-have-no-value-then/#findComment-1230210 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.