in reply to RE: When choosing perl/cgi
in thread When choosing perl/cgi

There are some nifty functions built right into PHP that I miss in plain Perl,

I don't do much with PHP so I'm curious... what are some of these functions?

Replies are listed 'Best First'.
RE: RE: RE: When choosing perl/cgi
by le (Friar) on Jun 06, 2000 at 02:51 UTC
    Well, for example:
    addslashes()... Returns a string with backslashes before characters that need to be quoted in database queries etc.
    stripslashes()... The opposite
    strip_tags()... This function tries to strip all HTML and PHP tags from the given string.
    There are some nice date/time-formatting functions too.
    All in all that's nothing that couldn't be done with good old regexps, but I don't always want to fuzz around with regexps.
      Ah. The addslashes() I did know about. It's not quite as nice as DBI placeholders.

      Thanks for the info.