Category: php functions
rtrim See Also:
chop chop() PHP Function
chop() is identical to the rtrim function —
string rtrim(string $str[, string $charlist ])
Strips characters including he
file get contents file_get_contents PHP Function
file_get_contents() streams in the content of a files that is passed to it as an argument.<?php
strip tags StripTags() php function
Striptags() is a php function that literally strips HTML tags out of files that are streamed in to php with a function like
var_dump() is very useful when you want to know what is inside of a php variable at certain spot in your php script.
die The die function
Die('') is a very useful php function. You can place "die anywhere in a script that want that script to terminate. It also provides a bit of f
addslashes string addcslashes(string $str , string $charlist)
How to use addslashes<?php
substr count How to use substr_count()
int substr_count ( string $haystack , string $needle [, int $offset= 0 [, int $length ]] )
stripslashes How to use stripslashes
$exampleString = 'My\ex\ampl\e';
$charlist = 'ea';
parse str How to use parse_str()
parse_str(string $str [,array &$arr ])
$string = 'firstVar=first&
nl2br nl2br() - How to convert newline characters to line breaks HTML
To preserve the layout of characters type into a text-box and format it to display in an HTML
md5 file How to Use md5_file()php function
md5 is a mathematical algorithm that is commonly called the md5 digest. The md5 procedure takes alphanumeric input and perfo
ltrim ltrim ltrim() php function
ltrim removes the leftmost entity from a string in PHP.
" " (ASCII 32 (0x20) - space.
"\t" (ASCII 9 (0x09)) - tab.
implode how to use implode() php function
The implode() php function is exactly the opposite of explode(). It takes an array of strings
The explode(); php function is one that is used a lot. For example, you might want to read website content into a php script and then parse and manipu
echo Echo is used in php scripts to output html characters to the screen. echo is one of the most used functions in the php language.