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..."; 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"; } 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 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
Archived
This topic is now archived and is closed to further replies.