if( strpos($recipe_instructions, "#") === FALSE )
{
$recipe_instructions =
"<ol>" .
str_replace("#", "<li>", purge_text($recipe_directions) ) .
"</ol>";
}
I am trying to create a function where #'s are replaced with <li>. I don't want to do just a str_replace, because I need to worry about <ol> and </ol> being in there.
The idea is that if strpos doesn't find a match, then the fucntion doesn't run. The code above works, but it shouldn't. It originally said "!== FALSE", but that didn't work.
Why in the world does this work, but !== does not? Have I lost my mind?