// TODO: // FIXME: // BUG: // NOTE: // HACK: // COMMENT: // [ ]: // [x]:
class car {
public $name;
function set_name($name){
$this->name = $name ;
}
function get_name(){
$this->name;
}
}
gettype ();
var_dump();
print_r();
is_string();
is_int();
is_bool();
is_double(); is_float();
is_numeric('');
isset();
define('const_name',const_val);
echo const_name;
$strNumber = '12.31'; $number = (float)$strNumber;
$strNumber = '12.31'; $number = floatval($strNumber);
number_format($number , num_to_splits ,dismal_sing, splits );
strlen($string);
trim($string);
ltrim($string);
rtrim($string);
str_word_count($string);
strrev($string);
strtoupper($string);
strtolower($string);
strpos($string,'word');
stripos($string,'word');
str_replace('word','word_to_replace',$string,);
str_ireplace('word','word_to_replace',$string,);
substr($string,pos_to_cut,length_of_string_left);
echo nl2br($string);
echo htmlentities($string);
echo count($array);
$array[] = $item;
array_push($array,$item);
array_pop($array); //and it well return that item
array_unshift($array,$item);
array_shift($array); //and it well return that item
explode('sprat',$string);
implode('sprat',$array);
in_array($item,$array);
array_search($item,$array);
array_merge($array1,$array2);
[...$array1,...$array2];
sort($array);
rsort($array);
$array[index]??="def_val";
$item ?: do_val;
$item > conditione ? true_do : false_do ;
array_values($array);
ksort($array);
asort($array);