Escape sequences

Escape sequence is a list of characters that represent special actions in a computer. For example in PHP \n represents a new line, \t - is a tab symbol, \\ - represents backslash symbol, \" is quote symbol, \r is a carriage return, it moves cursor to a new line. By default these characters will break functionality of an application, therefore to avoid issues with these, escape sequence can be used.

For these special sequences to work, a string must be unclosed in a type of quotes that support special sequences. For example in PHP these are double quotes. Single quotes can also be used to represent a string, however single quotes do not support special sequences.

YouTube video

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator