What is PHP?
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. PHP is mainly focused on server-side scripting, so you can do anything any other CGI program can do, such as collect form data, generate dynamic page content, or send and receive cookies. But PHP can do much more.
How To Work with Strings in PHP?
Here are some common escape sequences for double-quoted strings:
- Escape sequence Character represented
- \” Double quotes
- \n Newline
- \r Carriage return
- \t Tab
- \\ Backslash
- \$ Dollar sign
- \{ Left brace
- \} Right brace
- \[ Left bracket
- \] Right bracket
- \0 through \777 ASCII character represented by octal value
- \x0 through \xFF ASCII character represented by hex value