If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

If the value of $selectedImage contains a number (\d) then it will return the value of $selectedImage, if not then it will return the string "none".
The return result of the expression will be assigned to the variable $img for use elsewhere.

If the value of $selectedImage contains a number (\d) then it will return the value of $selectedImage, if not then it will return the string "none".
The return result of the expression will be assigned to the variable $img for use elsewhere.