Forum Moderators: coopster
In ASP it would be like this:
If Left(strFileName, 4) = "info" Then
Response.Write(strFileName & "<br>")
End If
Does PHP have a function like this? In the example above it reads the first "4" characters in the string strFileName and compairs it to "info". Any help would be greatly appreciated.
RedBaron
if (substr($strFileName,0,4)=="info") { echo $strFileName."<br />\n"; } Bookmark: the English version of the PHP manual [php.net]