Escaping quotes

I’m sure this is an escaping quotes problem, but I just can’t figure it out.

What should I do that I’m not doing?

I need “1” to be displayed:

<?php
$var = "word1" . '<br />' . "word2";
echo substr_count($var,". '<br />' .");
?>

Do an echo of $var.
You will see that the string “. ‘<br />’ .” is nowhere to be found in $var, so your substr_count will return 0.

Dooh!

Thanks,

Guido2004