\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{krabat1 (krabat1)} \pdfinfo{ /Title (php.pdf) /Creator (Cheatography) /Author (krabat1 (krabat1)) /Subject (PHP Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{FF9900} \definecolor{LightBackground}{HTML}{FFF8EF} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{PHP Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{krabat1 (krabat1)} via \textcolor{DarkBackground}{\uline{cheatography.com/2778/cs/706/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}krabat1 (krabat1) \\ \uline{cheatography.com/krabat1} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 8th December, 2012.\\ Updated 25th February, 2020.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP TOC I}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{PHP Control Structures} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2456}} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{PHP Function handling Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2462}} \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{PHP Operators} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2474}} \tn % Row Count 9 (+ 3) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{PHP Logical Operators} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2457}} \tn % Row Count 12 (+ 3) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{PHP Arithmetic Operators} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2461}} \tn % Row Count 15 (+ 3) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{PHP \seqsplit{Incrementing/Decrementing} Operators} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2458}} \tn % Row Count 18 (+ 3) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{PHP Bitwise Operators} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2460}} \tn % Row Count 21 (+ 3) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{PHP Comparison Operators} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2459}} \tn % Row Count 24 (+ 3) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{PHP Math Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2447}} \tn % Row Count 27 (+ 3) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{PHP XML Manipulation Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2448}} \tn % Row Count 30 (+ 3) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP TOC I (cont)}} \tn % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{PHP Network Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2440}} \tn % Row Count 3 (+ 3) % Row 11 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{PHP Error Handling Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2450}} \tn % Row Count 6 (+ 3) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{More PHP Cheat Sheet} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2453}} \tn % Row Count 9 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Control Structures}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{if}} \newline % Row Count 1 (+ 1) \seqsplit{http://php.net/manual/en/control-structures.if.php} \newline % Row Count 3 (+ 2) {\bf{else}} \newline % Row Count 4 (+ 1) \seqsplit{http://php.net/manual/en/control-structures.else.php} \newline % Row Count 6 (+ 2) {\bf{elseif/else if}} \newline % Row Count 7 (+ 1) \seqsplit{http://php.net/manual/en/control-structures.elseif.php} \newline % Row Count 9 (+ 2) {\bf{Alternative syntax for control structures}} \newline % Row Count 10 (+ 1) \seqsplit{http://hu1.php.net/manual/en/control-structures.alternative-syntax.php} \newline % Row Count 12 (+ 2) {\bf{while}} \newline % Row Count 13 (+ 1) \seqsplit{http://php.net/manual/en/control-structures.while.php} \newline % Row Count 15 (+ 2) {\bf{do-while}} \newline % Row Count 16 (+ 1) \seqsplit{http://php.net/manual/en/control-structures.do.while.php} \newline % Row Count 18 (+ 2) {\bf{for}} \newline % Row Count 19 (+ 1) \seqsplit{http://php.net/manual/en/control-structures.for.php} \newline % Row Count 21 (+ 2) {\bf{foreach}} \newline % Row Count 22 (+ 1) \seqsplit{http://php.net/manual/en/control-structures.foreach.php} \newline % Row Count 24 (+ 2) {\bf{break}} \newline % Row Count 25 (+ 1) \seqsplit{http://php.net/manual/en/control-structures.break.php} \newline % Row Count 27 (+ 2) {\bf{continue}} \newline % Row Count 28 (+ 1) \seqsplit{http://php.net/manual/en/control-structures.continue.php} \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Control Structures (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{switch}} \newline % Row Count 1 (+ 1) \seqsplit{http://php.net/manual/en/control-structures.switch.php} \newline % Row Count 3 (+ 2) {\bf{declare}} \newline % Row Count 4 (+ 1) \seqsplit{http://php.net/manual/en/control-structures.declare.php} \newline % Row Count 6 (+ 2) {\bf{return}} \newline % Row Count 7 (+ 1) \seqsplit{http://php.net/manual/en/function.return.php} \newline % Row Count 8 (+ 1) {\bf{require}} \newline % Row Count 9 (+ 1) \seqsplit{http://php.net/manual/en/function.require.php} \newline % Row Count 10 (+ 1) {\bf{include}} \newline % Row Count 11 (+ 1) \seqsplit{http://php.net/manual/en/function.include.php} \newline % Row Count 12 (+ 1) {\bf{require\_once}} \newline % Row Count 13 (+ 1) \seqsplit{http://php.net/manual/en/function.require-once.php} \newline % Row Count 15 (+ 2) {\bf{include\_once}} \newline % Row Count 16 (+ 1) \seqsplit{http://php.net/manual/en/function.include-once.php} \newline % Row Count 18 (+ 2) {\bf{goto}} \newline % Row Count 19 (+ 1) \seqsplit{http://php.net/manual/en/control-structures.goto.php}% Row Count 21 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Function handling Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{call\_user\_func\_array()}} \newline % Row Count 1 (+ 1) {\emph{Call a callback with an array of parameters}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{call\_user\_func()}} \newline % Row Count 6 (+ 1) {\emph{Call the callback given by the first parameter}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{create\_function()}} \newline % Row Count 11 (+ 1) {\emph{Create an anonymous (lambda-style) function}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{forward\_static\_call\_array()}} \newline % Row Count 16 (+ 1) {\emph{Call a static method and pass the arguments as array}} \newline % Row Count 18 (+ 2) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{forward\_static\_call()}} \newline % Row Count 22 (+ 1) {\emph{Call a static method}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{func\_get\_arg()}} \newline % Row Count 27 (+ 1) {\emph{Return an item from the argument list}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Function handling Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{func\_get\_args()}} \newline % Row Count 1 (+ 1) {\emph{Returns an array comprising a function's argument list}} \newline % Row Count 3 (+ 2) example \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{func\_num\_args()}} \newline % Row Count 7 (+ 1) {\emph{Returns the number of arguments passed to the function}} \newline % Row Count 9 (+ 2) example \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{function\_exists()}} \newline % Row Count 13 (+ 1) {\emph{Return TRUE if the given function has been defined}} \newline % Row Count 15 (+ 2) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{get\_defined\_functions()}} \newline % Row Count 19 (+ 1) {\emph{Returns an array of all defined functions}} \newline % Row Count 20 (+ 1) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{register\_shutdown\_function()}} \newline % Row Count 24 (+ 1) {\emph{Register a function for execution on shutdown}} \newline % Row Count 25 (+ 1) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{register\_tick\_function()}} \newline % Row Count 29 (+ 1) {\emph{Register a function for execution on each tick}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Function handling Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{unregister\_tick\_function()}} \newline % Row Count 4 (+ 1) *De-register a function for execution on each tick \newline % Row Count 6 (+ 2) example% Row Count 7 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Operators}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{$\filledsquare{}$ Operators}} \newline % Row Count 1 (+ 1) \seqsplit{http://php.net/manual/en/language.operators.php} \newline % Row Count 2 (+ 1) {\bf{$\filledsquare{}$ What does this symbol mean in PHP?}} \newline % Row Count 3 (+ 1) \seqsplit{http://stackoverflow.com/questions/3737139/reference-what-does-this-symbol-mean-in-php}% Row Count 5 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{0.86963 cm} p{0.64078 cm} x{3.06659 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{PHP Logical Operators}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Example}} & {\bf{Name}} & {\bf{Result}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \$a and \$b & And & TRUE if both \$a and \$b are TRUE. \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \$a or \$b & Or & TRUE if either \$a or \$b is TRUE. \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \$a xor \$b & Xor & TRUE if either \$a or \$b is TRUE, but not both. \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} ! \$a & Not & TRUE if \$a is not TRUE. \tn % Row Count 9 (+ 1) % Row 5 \SetRowColor{white} \$a \&\& \$b & And & TRUE if both \$a and \$b are TRUE. \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} \$a || \$b & Or & TRUE if either \$a or \$b is TRUE. \tn % Row Count 13 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{0.9154 cm} x{1.14425 cm} x{2.51735 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{PHP Arithmetic Operators}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Example}} & {\bf{Name}} & {\bf{Result}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} -\$a & Negation & Opposite of \$a. \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} \$a + \$b & Addition & Sum of \$a and \$b. \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} \$a - \$b & \seqsplit{Subtraction} & Difference of \$a and \$b. \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} \$a * \$b & \seqsplit{Multiplication} & Product of \$a and \$b. \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} \$a / \$b & Division & Quotient of \$a and \$b. \tn % Row Count 9 (+ 1) % Row 6 \SetRowColor{LightBackground} \$a \% \$b & Modulus & Remainder of \$a divided by \$b. \tn % Row Count 11 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.77809 cm} x{1.00694 cm} x{2.79197 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{PHP \seqsplit{Incrementing/Decrementing} Operators}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Example}} & {\bf{Name}} & {\bf{Effect}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} ++\$a & \seqsplit{Pre-increment} & Increments \$a by one, then returns \$a. \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \$a++ & \seqsplit{Post-increment} & Returns \$a, then increments \$a by one. \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} -{}-\$a & \seqsplit{Pre-decrement} & Decrements \$a by one, then returns \$a. \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \$a-{}- & \seqsplit{Post-decrement} & Returns \$a, then decrements \$a by one. \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.73232 cm} x{1.19002 cm} x{2.65466 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{PHP Bitwise Operators}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Example}} & {\bf{Name}} & {\bf{Result}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \$a \& \$b & And & Bits that are set in both \$a and \$b are set. \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \$a | \$b & Or \seqsplit{(inclusive} or) & Bits that are set in either \$a or \$b are set. \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \$a \textasciicircum{} \$b & Xor \seqsplit{(exclusive} or) & Bits that are set in \$a or \$b but not both are set. \tn % Row Count 9 (+ 3) % Row 4 \SetRowColor{LightBackground} \textasciitilde{} \$a & Not & Bits that are set in \$a are not set, and vice versa. \tn % Row Count 12 (+ 3) % Row 5 \SetRowColor{white} \$a \textless{}\textless{} \$b & Shift left & Shift the bits of \$a \$b steps to the left (each step means "multiply by two") \tn % Row Count 16 (+ 4) % Row 6 \SetRowColor{LightBackground} \$a \textgreater{}\textgreater{} \$b & Shift right & Shift the bits of \$a \$b steps to the right (each step means "divide by two") \tn % Row Count 20 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \columnbreak \begin{tabularx}{5.377cm}{x{1.28156 cm} x{1.28156 cm} x{2.01388 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{PHP Comparison Operators}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Example}} & {\bf{Name}} & {\bf{Result}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \$a == \$b & Equal & TRUE if \$a is equal to \$b after type juggling. \tn % Row Count 4 (+ 3) % Row 2 \SetRowColor{LightBackground} \$a === \$b & Identical & TRUE if \$a is equal to \$b, and they are of the same type. \tn % Row Count 8 (+ 4) % Row 3 \SetRowColor{white} \$a != \$b & Not equal & TRUE if \$a is not equal to \$b after type juggling. \tn % Row Count 11 (+ 3) % Row 4 \SetRowColor{LightBackground} \$a \textless{}\textgreater{} \$b & Not equal & TRUE if \$a is not equal to \$b after type juggling. \tn % Row Count 14 (+ 3) % Row 5 \SetRowColor{white} \$a !== \$b & Not identical & TRUE if \$a is not equal to \$b, or they are not of the same type. \tn % Row Count 18 (+ 4) % Row 6 \SetRowColor{LightBackground} \$a \textless{} \$b & Less than & TRUE if \$a is strictly less than \$b. \tn % Row Count 21 (+ 3) % Row 7 \SetRowColor{white} \$a \textgreater{} \$b & Greater than & TRUE if \$a is strictly greater than \$b. \tn % Row Count 24 (+ 3) % Row 8 \SetRowColor{LightBackground} \$a \textless{}= \$b & Less than or equal to & TRUE if \$a is less than or equal to \$b. \tn % Row Count 27 (+ 3) % Row 9 \SetRowColor{white} \$a \textgreater{}= \$b & Greater than or equal to & TRUE if \$a is greater than or equal to \$b. \tn % Row Count 30 (+ 3) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.28156 cm} x{1.28156 cm} x{2.01388 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{PHP Comparison Operators (cont)}} \tn % Row 10 \SetRowColor{LightBackground} {\bf{Comparison }} & {\bf{with }} & {\bf{Various Types}} \tn % Row Count 2 (+ 2) % Row 11 \SetRowColor{white} {\bf{Type of Operand 1}} & {\bf{Type of Operand 2}} & {\bf{Result}} \tn % Row Count 4 (+ 2) % Row 12 \SetRowColor{LightBackground} null or string & string & Convert NULL to "", numerical or lexical comparison \tn % Row Count 7 (+ 3) % Row 13 \SetRowColor{white} bool or null & anything & Convert to bool, FALSE \textless{} TRUE \tn % Row Count 9 (+ 2) % Row 14 \SetRowColor{LightBackground} object & object & Built-in classes can define its own comparison, different classes are uncomparable, same class - compare properties the same way as arrays (PHP 4), PHP 5 has its own explanation \tn % Row Count 20 (+ 11) % Row 15 \SetRowColor{white} string, resource or number & string, resource or number & Translate strings and resources to numbers, usual math \tn % Row Count 24 (+ 4) % Row 16 \SetRowColor{LightBackground} array & array & Array with fewer members is smaller, if key from operand 1 is not found in operand 2 then arrays are uncomparable, otherwise - compare value by value (see following example) \tn % Row Count 35 (+ 11) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.28156 cm} x{1.28156 cm} x{2.01388 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{PHP Comparison Operators (cont)}} \tn % Row 17 \SetRowColor{LightBackground} array & anything & array is always greater \tn % Row Count 2 (+ 2) % Row 18 \SetRowColor{white} object & anything & object is always greater \tn % Row Count 4 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Math Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{abs()}} \newline % Row Count 1 (+ 1) {\emph{Absolute value}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{acos()}} \newline % Row Count 6 (+ 1) {\emph{Arc cosine}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{acosh()}} \newline % Row Count 11 (+ 1) {\emph{Inverse hyperbolic cosine}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{asin()}} \newline % Row Count 16 (+ 1) {\emph{Arc sine}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{asinh()}} \newline % Row Count 21 (+ 1) {\emph{Inverse hyperbolic sine}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{atan2()}} \newline % Row Count 26 (+ 1) {\emph{Arc tangent of two variables}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Math Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{atan()}} \newline % Row Count 1 (+ 1) {\emph{Arc tangent}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{atanh()}} \newline % Row Count 6 (+ 1) {\emph{Inverse hyperbolic tangent}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{base\_convert()}} \newline % Row Count 11 (+ 1) {\emph{Convert a number between arbitrary bases}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{bindec()}} \newline % Row Count 16 (+ 1) {\emph{Binary to decimal}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{ceil()}} \newline % Row Count 21 (+ 1) {\emph{Round fractions up}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{cos()}} \newline % Row Count 26 (+ 1) {\emph{Cosine}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Math Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{cosh()}} \newline % Row Count 1 (+ 1) {\emph{Hyperbolic cosine}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{decbin()}} \newline % Row Count 6 (+ 1) {\emph{Decimal to binary}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{dechex()}} \newline % Row Count 11 (+ 1) {\emph{Decimal to hexadecimal}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{decoct()}} \newline % Row Count 16 (+ 1) {\emph{Decimal to octal}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{deg2rad()}} \newline % Row Count 21 (+ 1) {\emph{Converts the number in degrees to the radian equivalent}} \newline % Row Count 23 (+ 2) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{exp()}} \newline % Row Count 27 (+ 1) {\emph{Calculates the exponent of e}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Math Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{expm1()}} \newline % Row Count 1 (+ 1) {\emph{Returns exp(number) - 1, computed in a way that is accurate even when the value of number is close to zero}} \newline % Row Count 4 (+ 3) example \newline % Row Count 5 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{floor()}} \newline % Row Count 8 (+ 1) {\emph{Round fractions down}} \newline % Row Count 9 (+ 1) example \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{fmod()}} \newline % Row Count 13 (+ 1) {\emph{Returns the floating point remainder (modulo) of the division of the arguments}} \newline % Row Count 15 (+ 2) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{getrandmax()}} \newline % Row Count 19 (+ 1) {\emph{Show largest possible random value}} \newline % Row Count 20 (+ 1) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{hexdec()}} \newline % Row Count 24 (+ 1) {\emph{Hexadecimal to decimal}} \newline % Row Count 25 (+ 1) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{hypot()}} \newline % Row Count 29 (+ 1) {\emph{Calculate the length of the hypotenuse of a right-angle triangle}} \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Math Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{is\_finite()}} \newline % Row Count 4 (+ 1) {\emph{Finds whether a value is a legal finite number}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{is\_infinite()}} \newline % Row Count 9 (+ 1) {\emph{Finds whether a value is infinite}} \newline % Row Count 10 (+ 1) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{is\_nan()}} \newline % Row Count 14 (+ 1) {\emph{Finds whether a value is not a number}} \newline % Row Count 15 (+ 1) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{lcg\_value()}} \newline % Row Count 19 (+ 1) {\emph{Combined linear congruential generator}} \newline % Row Count 20 (+ 1) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{log10()}} \newline % Row Count 24 (+ 1) {\emph{Base-10 logarithm}} \newline % Row Count 25 (+ 1) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{log1p()}} \newline % Row Count 29 (+ 1) {\emph{Returns log(1 + number), computed in a way that is accurate even when the value of number is close to zero}} \newline % Row Count 32 (+ 3) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Math Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{log()}} \newline % Row Count 4 (+ 1) {\emph{Natural logarithm}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{max()}} \newline % Row Count 9 (+ 1) {\emph{Find highest value}} \newline % Row Count 10 (+ 1) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{min()}} \newline % Row Count 14 (+ 1) {\emph{Find lowest value}} \newline % Row Count 15 (+ 1) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{mt\_getrandmax()}} \newline % Row Count 19 (+ 1) {\emph{Show largest possible random value}} \newline % Row Count 20 (+ 1) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{mt\_rand()}} \newline % Row Count 24 (+ 1) {\emph{Generate a better random value}} \newline % Row Count 25 (+ 1) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{mt\_srand()}} \newline % Row Count 29 (+ 1) {\emph{Seed the better random number generator}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Math Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{octdec()}} \newline % Row Count 4 (+ 1) {\emph{Octal to decimal}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{pi()}} \newline % Row Count 9 (+ 1) {\emph{Get value of pi}} \newline % Row Count 10 (+ 1) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{pow()}} \newline % Row Count 14 (+ 1) {\emph{Exponential expression}} \newline % Row Count 15 (+ 1) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{rad2deg()}} \newline % Row Count 19 (+ 1) {\emph{Converts the radian number to the equivalent number in degrees}} \newline % Row Count 21 (+ 2) example \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{rand()}} \newline % Row Count 25 (+ 1) {\emph{Generate a random integer}} \newline % Row Count 26 (+ 1) example \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{round()}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Math Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Rounds a float}} \newline % Row Count 1 (+ 1) example \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{sin()}} \newline % Row Count 5 (+ 1) {\emph{Sine}} \newline % Row Count 6 (+ 1) example \newline % Row Count 7 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 9 (+ 2) {\bf{sinh()}} \newline % Row Count 10 (+ 1) {\emph{Hyperbolic sine}} \newline % Row Count 11 (+ 1) example \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{sqrt()}} \newline % Row Count 15 (+ 1) {\emph{Square root}} \newline % Row Count 16 (+ 1) example \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{srand()}} \newline % Row Count 20 (+ 1) {\emph{Seed the random number generator}} \newline % Row Count 21 (+ 1) example \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{tan()}} \newline % Row Count 25 (+ 1) {\emph{Tangent}} \newline % Row Count 26 (+ 1) example \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{tanh()}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Math Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Hyperbolic tangent}} \newline % Row Count 1 (+ 1) example \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-% Row Count 4 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP XML Manipulation Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{DOM}} \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{dom\_import\_simplexml()}} \newline % Row Count 6 (+ 1) {\emph{Gets a DOMElement object from a SimpleXMLElement object}} \newline % Row Count 8 (+ 2) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{DOM CONSTANTS}} \newline % Row Count 12 (+ 1) \seqsplit{http://php.net/manual/en/dom.constants.php} \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{LIBXML}} \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{libxml\_clear\_errors()}} \newline % Row Count 21 (+ 1) {\emph{Clear libxml error buffer}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{libxml\_disable\_entity\_loader()}} \newline % Row Count 26 (+ 1) {\emph{Disable the ability to load external entities}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP XML Manipulation Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{libxml\_get\_errors()}} \newline % Row Count 1 (+ 1) {\emph{Retrieve array of errors}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{libxml\_get\_last\_error()}} \newline % Row Count 6 (+ 1) {\emph{Retrieve last error from libxml}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{libxml\_set\_external\_entity\_loader()}} \newline % Row Count 11 (+ 1) {\emph{Changes the default external entity loader}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{libxml\_set\_streams\_context()}} \newline % Row Count 16 (+ 1) {\emph{Set the streams context for the next libxml document load or write}} \newline % Row Count 18 (+ 2) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{libxml\_use\_internal\_errors()}} \newline % Row Count 22 (+ 1) {\emph{Disable libxml errors and allow user to fetch error information as needed}} \newline % Row Count 24 (+ 2) example \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{LIBXML CONSTANTS}} \newline % Row Count 28 (+ 1) \seqsplit{http://php.net/manual/en/libxml.constants.php} \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP XML Manipulation Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{SIMPLEXML}} \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{simplexml\_import\_dom()}} \newline % Row Count 6 (+ 1) {\emph{Get a SimpleXMLElement object from a DOM node.}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{simplexml\_load\_file()}} \newline % Row Count 11 (+ 1) {\emph{Interprets an XML file into an object}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{simplexml\_load\_string()}} \newline % Row Count 16 (+ 1) {\emph{Interprets a string of XML into an object}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{XML PARSER}} \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{utf8\_decode()}} \newline % Row Count 26 (+ 1) {\emph{Converts a string with ISO-8859-1 characters encoded with UTF-8 to single-byte ISO-8859-1}} \newline % Row Count 28 (+ 2) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP XML Manipulation Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{utf8\_encode()}} \newline % Row Count 1 (+ 1) {\emph{Encodes an ISO-8859-1 string to UTF-8}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{xml\_error\_string()}} \newline % Row Count 6 (+ 1) {\emph{Get XML parser error string}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{xml\_get\_current\_byte\_index()}} \newline % Row Count 11 (+ 1) {\emph{Get current byte index for an XML parser}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{xml\_get\_current\_column\_number()}} \newline % Row Count 16 (+ 1) {\emph{Get current column number for an XML parser}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{xml\_get\_current\_line\_number()}} \newline % Row Count 21 (+ 1) {\emph{Get current line number for an XML parser}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{xml\_get\_error\_code()}} \newline % Row Count 26 (+ 1) {\emph{Get XML parser error code}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP XML Manipulation Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{xml\_parse\_into\_struct()}} \newline % Row Count 1 (+ 1) {\emph{Parse XML data into an array structure}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{xml\_parse()}} \newline % Row Count 6 (+ 1) {\emph{Start parsing an XML document}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{xml\_parser\_create\_ns()}} \newline % Row Count 11 (+ 1) {\emph{Create an XML parser with namespace support}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{xml\_parser\_create()}} \newline % Row Count 16 (+ 1) {\emph{Create an XML parser}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{xml\_parser\_free()}} \newline % Row Count 21 (+ 1) {\emph{Free an XML parser}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{xml\_parser\_get\_option()}} \newline % Row Count 26 (+ 1) {\emph{Get options from an XML parser}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP XML Manipulation Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{xml\_parser\_set\_option()}} \newline % Row Count 1 (+ 1) {\emph{Set options in an XML parser}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{xml\_set\_character\_data\_handler()}} \newline % Row Count 6 (+ 1) {\emph{Set up character data handler}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{xml\_set\_default\_handler()}} \newline % Row Count 11 (+ 1) {\emph{Set up default handler}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{xml\_set\_element\_handler()}} \newline % Row Count 16 (+ 1) {\emph{Set up start and end element handlers}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{xml\_set\_end\_namespace\_decl\_handler()}} \newline % Row Count 21 (+ 1) {\emph{Set up end namespace declaration handler}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{xml\_set\_external\_entity\_ref\_handler()}} \newline % Row Count 26 (+ 1) {\emph{Set up external entity reference handler}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP XML Manipulation Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{xml\_set\_notation\_decl\_handler()}} \newline % Row Count 1 (+ 1) {\emph{Set up notation declaration handler}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{xml\_set\_object()}} \newline % Row Count 6 (+ 1) {\emph{Use XML Parser within an object}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{xml\_set\_processing\_instruction\_handler()}} \newline % Row Count 11 (+ 1) {\emph{Set up processing instruction (PI) handler}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{xml\_set\_start\_namespace\_decl\_handler()}} \newline % Row Count 16 (+ 1) {\emph{Set up start namespace declaration handler}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{xml\_set\_unparsed\_entity\_decl\_handler()}} \newline % Row Count 21 (+ 1) *Set up unparsed entity declaration handler \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) XML PARSER CONSTANTS \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP XML Manipulation Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{XML\_ERROR\_NONE}} (integer) \newline % Row Count 1 (+ 1) {\bf{XML\_ERROR\_NO\_MEMORY}} (integer) \newline % Row Count 2 (+ 1) {\bf{XML\_ERROR\_SYNTAX}} (integer) \newline % Row Count 3 (+ 1) {\bf{XML\_ERROR\_NO\_ELEMENTS}} (integer) \newline % Row Count 4 (+ 1) {\bf{XML\_ERROR\_INVALID\_TOKEN}} (integer) \newline % Row Count 5 (+ 1) {\bf{XML\_ERROR\_UNCLOSED\_TOKEN}} (integer) \newline % Row Count 6 (+ 1) {\bf{XML\_ERROR\_PARTIAL\_CHAR}} (integer) \newline % Row Count 7 (+ 1) {\bf{XML\_ERROR\_TAG\_MISMATCH}} (integer) \newline % Row Count 8 (+ 1) {\bf{XML\_ERROR\_DUPLICATE\_ATTRIBUTE}} (integer) \newline % Row Count 9 (+ 1) {\bf{XML\_ERROR\_JUNK\_AFTER\_DOC\_ELEMENT}} (integer) \newline % Row Count 10 (+ 1) {\bf{XML\_ERROR\_PARAM\_ENTITY\_REF}} (integer) \newline % Row Count 11 (+ 1) {\bf{XML\_ERROR\_UNDEFINED\_ENTITY}} (integer) \newline % Row Count 12 (+ 1) {\bf{XML\_ERROR\_RECURSIVE\_ENTITY\_REF}} (integer) \newline % Row Count 13 (+ 1) {\bf{XML\_ERROR\_ASYNC\_ENTITY}} (integer) \newline % Row Count 14 (+ 1) {\bf{XML\_ERROR\_BAD\_CHAR\_REF}} (integer) \newline % Row Count 15 (+ 1) {\bf{XML\_ERROR\_BINARY\_ENTITY\_REF}} (integer) \newline % Row Count 16 (+ 1) {\bf{XML\_ERROR\_ATTRIBUTE\_EXTERNAL\_ENTITY\_REF}} (integer) \newline % Row Count 18 (+ 2) {\bf{XML\_ERROR\_MISPLACED\_XML\_PI}} (integer) \newline % Row Count 19 (+ 1) {\bf{XML\_ERROR\_UNKNOWN\_ENCODING}} (integer) \newline % Row Count 20 (+ 1) {\bf{XML\_ERROR\_INCORRECT\_ENCODING}} (integer) \newline % Row Count 21 (+ 1) {\bf{XML\_ERROR\_UNCLOSED\_CDATA\_SECTION}} (integer) \newline % Row Count 22 (+ 1) {\bf{XML\_ERROR\_EXTERNAL\_ENTITY\_HANDLING}} (integer) \newline % Row Count 23 (+ 1) {\bf{XML\_OPTION\_CASE\_FOLDING}} (integer) \newline % Row Count 24 (+ 1) {\bf{XML\_OPTION\_TARGET\_ENCODING}} (integer) \newline % Row Count 25 (+ 1) {\bf{XML\_OPTION\_SKIP\_TAGSTART}} (integer) \newline % Row Count 26 (+ 1) {\bf{XML\_OPTION\_SKIP\_WHITE}} (integer) \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{XML\_SAX\_IMPL}} (string) \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP XML Manipulation Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Holds the SAX implementation method. Can be libxml or expat.}}% Row Count 2 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Network Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{checkdnsrr()}} \newline % Row Count 1 (+ 1) {\emph{Check DNS records corresponding to a given Internet host name or IP address}} \newline % Row Count 3 (+ 2) example \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{closelog()}} \newline % Row Count 7 (+ 1) {\emph{Close connection to system logger}} \newline % Row Count 8 (+ 1) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{define\_syslog\_variables()}} \newline % Row Count 12 (+ 1) {\emph{Initializes all syslog related variables}} \newline % Row Count 13 (+ 1) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{dns\_check\_record()}} \newline % Row Count 17 (+ 1) {\emph{Alias of checkdnsrr}} \newline % Row Count 18 (+ 1) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{dns\_get\_mx()}} \newline % Row Count 22 (+ 1) {\emph{Alias of getmxrr}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{dns\_get\_record()}} \newline % Row Count 27 (+ 1) {\emph{Fetch DNS Resource Records associated with a hostname}} \newline % Row Count 29 (+ 2) example \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Network Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{fsockopen()}} \newline % Row Count 3 (+ 1) {\emph{Open Internet or Unix domain socket connection}} \newline % Row Count 4 (+ 1) example \newline % Row Count 5 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{gethostbyaddr()}} \newline % Row Count 8 (+ 1) {\emph{Get the Internet host name corresponding to a given IP address}} \newline % Row Count 10 (+ 2) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{gethostbyname()}} \newline % Row Count 14 (+ 1) {\emph{Get the IPv4 address corresponding to a given Internet host name}} \newline % Row Count 16 (+ 2) example \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{gethostbynamel()}} \newline % Row Count 20 (+ 1) {\emph{Get a list of IPv4 addresses corresponding to a given Internet host name}} \newline % Row Count 22 (+ 2) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{gethostname()}} \newline % Row Count 26 (+ 1) {\emph{Gets the host name}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Network Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{getmxrr()}} \newline % Row Count 1 (+ 1) {\emph{Get MX records corresponding to a given Internet host name}} \newline % Row Count 3 (+ 2) example \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{getprotobyname()}} \newline % Row Count 7 (+ 1) {\emph{Get protocol number associated with protocol name}} \newline % Row Count 9 (+ 2) example \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{getprotobynumber()}} \newline % Row Count 13 (+ 1) {\emph{Get protocol name associated with protocol number}} \newline % Row Count 15 (+ 2) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{getservbyname()}} \newline % Row Count 19 (+ 1) {\emph{Get port number associated with an Internet service and protocol}} \newline % Row Count 21 (+ 2) example \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{getservbyport()}} \newline % Row Count 25 (+ 1) {\emph{Get Internet service which corresponds to port and protocol}} \newline % Row Count 27 (+ 2) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Network Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{header\_register\_callback()}} \newline % Row Count 1 (+ 1) {\emph{Call a header function}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{header\_remove()}} \newline % Row Count 6 (+ 1) {\emph{Remove previously set headers}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{header()}} \newline % Row Count 11 (+ 1) {\emph{Send a raw HTTP header}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{headers\_list()}} \newline % Row Count 16 (+ 1) {\emph{Returns a list of response headers sent (or ready to send)}} \newline % Row Count 18 (+ 2) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{headers\_sent()}} \newline % Row Count 22 (+ 1) {\emph{Checks if or where headers have been sent}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{http\_response\_code()}} \newline % Row Count 27 (+ 1) {\emph{Get or Set the HTTP response code}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Network Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{inet\_ntop()}} \newline % Row Count 1 (+ 1) {\emph{Converts a packed internet address to a human readable representation}} \newline % Row Count 3 (+ 2) example \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{inet\_pton()}} \newline % Row Count 7 (+ 1) {\emph{Converts a human readable IP address to its packed in\_addr representation}} \newline % Row Count 9 (+ 2) example \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{ip2long()}} \newline % Row Count 13 (+ 1) {\emph{Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address}} \newline % Row Count 15 (+ 2) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{long2ip()}} \newline % Row Count 19 (+ 1) {\emph{Converts an (IPv4) Internet network address into a string in Internet standard dotted format}} \newline % Row Count 21 (+ 2) example \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{openlog()}} \newline % Row Count 25 (+ 1) {\emph{Open connection to system logger}} \newline % Row Count 26 (+ 1) example \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{pfsockopen()}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Network Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Open persistent Internet or Unix domain socket connection}} \newline % Row Count 2 (+ 2) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{setcookie()}} \newline % Row Count 6 (+ 1) {\emph{Send a cookie}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{setrawcookie()}} \newline % Row Count 11 (+ 1) {\emph{Send a cookie without urlencoding the cookie value}} \newline % Row Count 13 (+ 2) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{socket\_get\_status()}} \newline % Row Count 17 (+ 1) {\emph{Alias of stream\_get\_meta\_data}} \newline % Row Count 18 (+ 1) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{socket\_set\_blocking()}} \newline % Row Count 22 (+ 1) {\emph{Alias of stream\_set\_blocking}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{socket\_set\_timeout()}} \newline % Row Count 27 (+ 1) {\emph{Alias of stream\_set\_timeout}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Network Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{syslog()}} \newline % Row Count 1 (+ 1) {\emph{Generate a system log message}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) NETWORK CONSTANTS \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\emph{*openlog() Options}} \newline % Row Count 11 (+ 1) {\bf{LOG\_CONS()}} \newline % Row Count 12 (+ 1) {\emph{ if there is an error while sending data to the system logger, write directly to the system console}} \newline % Row Count 15 (+ 3) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{LOG\_NDELAY()}} \newline % Row Count 18 (+ 1) {\emph{ open the connection to the logger immediately}} \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{LOG\_ODELAY()}} \newline % Row Count 22 (+ 1) {\emph{ (default) delay opening the connection until the first message is logged}} \newline % Row Count 24 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{LOG\_NOWAIT()}} \newline % Row Count 27 (+ 1) ** \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Network Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{LOG\_PERROR()}} \newline % Row Count 1 (+ 1) {\emph{print log message also to standard error}} \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{LOG\_PID()}} \newline % Row Count 5 (+ 1) {\emph{include PID with each message}} \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\emph{*openlog() Facilities}} \newline % Row Count 9 (+ 1) {\bf{LOG\_AUTH()}} \newline % Row Count 10 (+ 1) {\emph{ security/authorization messages (use LOG\_AUTHPRIV instead in systems where that constant is defined)}} \newline % Row Count 13 (+ 3) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{LOG\_AUTHPRIV()}} \newline % Row Count 16 (+ 1) {\emph{security/authorization messages (private)}} \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{LOG\_CRON()}} \newline % Row Count 20 (+ 1) {\emph{clock daemon (cron and at)}} \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{LOG\_DAEMON()}} \newline % Row Count 24 (+ 1) {\emph{other system daemons}} \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{LOG\_KERN()}} \newline % Row Count 28 (+ 1) {\emph{kernel messages}} \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Network Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{LOG\_LOCAL0 ... LOG\_LOCAL7()}} \newline % Row Count 1 (+ 1) {\emph{reserved for local use, these are not available in Windows}} \newline % Row Count 3 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{LOG\_LPR()}} \newline % Row Count 6 (+ 1) {\emph{line printer subsystem}} \newline % Row Count 7 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 9 (+ 2) {\bf{LOG\_MAIL()}} \newline % Row Count 10 (+ 1) {\emph{mail subsystem}} \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{LOG\_NEWS()}} \newline % Row Count 14 (+ 1) {\emph{USENET news subsystem}} \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{LOG\_SYSLOG()}} \newline % Row Count 18 (+ 1) {\emph{messages generated internally by syslogd}} \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{LOG\_USER()}} \newline % Row Count 22 (+ 1) {\emph{generic user-level messages}} \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{LOG\_UUCP()}} \newline % Row Count 26 (+ 1) {\emph{UUCP subsystem}} \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\emph{*syslog() Priorities (in descending order)}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Network Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{LOG\_EMERG()}} \newline % Row Count 1 (+ 1) {\emph{system is unusable}} \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{LOG\_ALERT()}} \newline % Row Count 5 (+ 1) {\emph{action must be taken immediately}} \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{LOG\_CRIT()}} \newline % Row Count 9 (+ 1) {\emph{critical conditions}} \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{LOG\_ERR()}} \newline % Row Count 13 (+ 1) {\emph{error conditions}} \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{LOG\_WARNING()}} \newline % Row Count 17 (+ 1) {\emph{warning conditions}} \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{LOG\_NOTICE()}} \newline % Row Count 21 (+ 1) {\emph{normal, but significant, condition}} \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{LOG\_INFO()}} \newline % Row Count 25 (+ 1) {\emph{informational message}} \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{LOG\_DEBUG()}} \newline % Row Count 29 (+ 1) {\emph{debug-level message}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Network Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\emph{*dns\_get\_record() Options}} \newline % Row Count 3 (+ 1) {\bf{DNS\_A()}} \newline % Row Count 4 (+ 1) {\emph{IPv4 Address Resource}} \newline % Row Count 5 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{DNS\_MX()}} \newline % Row Count 8 (+ 1) {\emph{Mail Exchanger Resource}} \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{DNS\_CNAME()}} \newline % Row Count 12 (+ 1) {\emph{Alias (Canonical Name) Resource}} \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{DNS\_NS()}} \newline % Row Count 16 (+ 1) {\emph{Authoritative Name Server Resource}} \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{DNS\_PTR()}} \newline % Row Count 20 (+ 1) {\emph{Pointer Resource}} \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{DNS\_HINFO()}} \newline % Row Count 24 (+ 1) {\emph{Host Info Resource (See IANA's » Operating System Names for the meaning of these values)}} \newline % Row Count 26 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{DNS\_SOA()}} \newline % Row Count 29 (+ 1) {\emph{Start of Authority Resource}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Network Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{DNS\_TXT()}} \newline % Row Count 3 (+ 1) {\emph{Text Resource}} \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{DNS\_ANY()}} \newline % Row Count 7 (+ 1) {\emph{Any Resource Record. On most systems this returns all resource records, however it should not be counted upon for critical uses. Try DNS\_ALL instead.}} \newline % Row Count 11 (+ 4) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{DNS\_AAAA()}} \newline % Row Count 14 (+ 1) {\emph{IPv6 Address Resource}} \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{DNS\_ALL()}} \newline % Row Count 18 (+ 1) *Iteratively query the name server for each available record type.% Row Count 20 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Error Handling Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{$\filledsquare{}$ List of Parser Tokens:}} \newline % Row Count 1 (+ 1) \seqsplit{http://php.net/manual/en/tokens.php} \newline % Row Count 2 (+ 1) {\emph{Various parts of the PHP language are represented internally by types like T\_SR. PHP outputs identifiers like this one in parse errors, like }}"{\bf{Parse error: unexpected T\_SR, expecting ',' or ';' in script.php on line 10.}}" \newline % Row Count 7 (+ 5) {\emph{You're supposed to know what}} {\bf{T\_SR}} {\emph{means. For everybody who doesn't know that, here is a table with those identifiers, PHP-syntax and references to the appropriate places in the manual.}} \newline % Row Count 11 (+ 4) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{debug\_backtrace()}} \newline % Row Count 14 (+ 1) {\emph{Generates a backtrace}} \newline % Row Count 15 (+ 1) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{debug\_print\_backtrace()}} \newline % Row Count 19 (+ 1) {\emph{Prints a backtrace}} \newline % Row Count 20 (+ 1) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{error\_get\_last()}} \newline % Row Count 24 (+ 1) {\emph{Get the last occurred error}} \newline % Row Count 25 (+ 1) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{error\_log()}} \newline % Row Count 29 (+ 1) {\emph{Send an error message somewhere}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Error Handling Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{error\_reporting()}} \newline % Row Count 4 (+ 1) {\emph{Sets which PHP errors are reported}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{restore\_error\_handler()}} \newline % Row Count 9 (+ 1) {\emph{Restores the previous error handler function}} \newline % Row Count 10 (+ 1) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{restore\_exception\_handler()}} \newline % Row Count 14 (+ 1) {\emph{Restores the previously defined exception handler function}} \newline % Row Count 16 (+ 2) example \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{set\_error\_handler()}} \newline % Row Count 20 (+ 1) {\emph{Sets a user-defined error handler function}} \newline % Row Count 21 (+ 1) example \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{set\_exception\_handler()}} \newline % Row Count 25 (+ 1) {\emph{Sets a user-defined exception handler function}} \newline % Row Count 26 (+ 1) example \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{trigger\_error()}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Error Handling Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Generates a user-level error/warning/notice message}} \newline % Row Count 2 (+ 2) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{user\_error()}} \newline % Row Count 6 (+ 1) *Alias of trigger\_error \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{ERROR HANDLING CONSTANTS}} \newline % Row Count 13 (+ 1) \seqsplit{http://hu2.php.net/manual/en/errorfunc.constants.php} \newline % Row Count 15 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-% Row Count 17 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{More PHP Cheat Sheet}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{http://overapi.com/php/ \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}- \newline % Row Count 3 (+ 2) \seqsplit{http://www.cheatography.com/davechild/cheat-sheets/php/} \newline % Row Count 5 (+ 2) -{}-{}-{}-{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}- \newline % Row Count 7 (+ 2) \seqsplit{http://www.cheatography.com/guslong/cheat-sheets/php-syntax-for-beginners/} \newline % Row Count 9 (+ 2) -{}-{}-{}-{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}- \newline % Row Count 11 (+ 2) \seqsplit{http://www.cheatography.com/mkpeacock/cheat-sheets/php-fundamentals/} \newline % Row Count 13 (+ 2) -{}-{}-{}-{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}- \newline % Row Count 15 (+ 2) \seqsplit{http://www.cheatography.com/media-slave/cheat-sheets/php-cheatsheet/} \newline % Row Count 17 (+ 2) -{}-{}-{}-{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}- \newline % Row Count 19 (+ 2) \seqsplit{http://www.dreamincode.net/downloads/ref\_sheets/php\_reference\_sheet.pdf} \newline % Row Count 21 (+ 2) -{}-{}-{}-{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}- \newline % Row Count 23 (+ 2) \seqsplit{http://www.digilife.be/quickreferences/QRC/PHP\%20Cheat\%20Sheet.pdf} \newline % Row Count 25 (+ 2) -{}-{}-{}-{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}- \newline % Row Count 27 (+ 2) \seqsplit{http://www.sk89q.com/content/2010/04/phpsec\_cheatsheet.pdf} \newline % Row Count 29 (+ 2) -{}-{}-{}-{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{More PHP Cheat Sheet (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\seqsplit{http://i.emezeta.com/weblog/emezeta-php-card-v0.2.png} \newline % Row Count 2 (+ 2) -{}-{}-{}-{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}- \newline % Row Count 4 (+ 2) \seqsplit{http://www.dummies.com/how-to/content/php-mysql-for-dummies-cheat-sheet.html} (PHP + MySQL) \newline % Row Count 6 (+ 2) -{}-{}-{}-{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}- \newline % Row Count 8 (+ 2) \seqsplit{http://opendir.hu/tmp/pub/files/cheatsheet/php\_mysql/php\_mysql\_cheatsheet.png} (PHP + MySQL) \newline % Row Count 10 (+ 2) -{}-{}-{}-{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}- \newline % Row Count 12 (+ 2) \seqsplit{http://opendir.hu/tmp/pub/files/cheatsheet/array\_string\_php\_cheatsheet.png} \newline % Row Count 14 (+ 2) -{}-{}-{}-{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}- \newline % Row Count 16 (+ 2) \seqsplit{http://www.digilife.be/quickreferences/QRC/PHP\%204\%20Reference\%20Card.pdf} \newline % Row Count 18 (+ 2) -{}-{}-{}-{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}- \newline % Row Count 20 (+ 2) \seqsplit{http://www.visibone.com/php/phpskinnysheetback.gif} \newline % Row Count 22 (+ 2) -{}-{}-{}-{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}- \newline % Row Count 24 (+ 2) \seqsplit{http://roshanbh.com.np/2008/05/useful-server-variables-php.html} \newline % Row Count 26 (+ 2) -{}-{}-{}-{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}----{}--{}-{}--{}- \newline % Row Count 28 (+ 2) \seqsplit{http://webcheatsheet.com/php/regular\_expressions.php} (PHP + REGEX)% Row Count 30 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP TOC II}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{PHP Predefined Variables} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2455}} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{PHP Array Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2435}} \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{PHP String Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2436}} \tn % Row Count 9 (+ 3) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{PHP Date/Time Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2437}} \tn % Row Count 12 (+ 3) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{PHP Calendar Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2438}} \tn % Row Count 15 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Code Vault}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/krabat1_1354993781_favicon[1].png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Many thx for the {\bf{Code Vault}}! \newline http://cdv.lt \newline {\bf{Chrome Extension:}} \newline https://chrome.google.com/webstore/detail/jlkbbpmihbehjcabecbknmddmknconbf} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Predefined Variables}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Superglobals}} \newline % Row Count 1 (+ 1) {\emph{Superglobals are built-in variables that are always available in all scopes}} \newline % Row Count 3 (+ 2) Several predefined variables in PHP are "superglobals", which means they are available in all scopes throughout a script. There is no need to do global \$variable; to access them within functions or methods. \newline % Row Count 8 (+ 5) These superglobal variables are: \newline % Row Count 9 (+ 1) {\bf{\$GLOBALS}} \newline % Row Count 10 (+ 1) {\bf{\$\_SERVER}} \newline % Row Count 11 (+ 1) {\bf{\$\_GET}} \newline % Row Count 12 (+ 1) {\bf{\$\_POST}} \newline % Row Count 13 (+ 1) {\bf{\$\_FILES}} \newline % Row Count 14 (+ 1) {\bf{\$\_COOKIE}} \newline % Row Count 15 (+ 1) {\bf{\$\_SESSION}} \newline % Row Count 16 (+ 1) {\bf{\$\_REQUEST}} \newline % Row Count 17 (+ 1) {\bf{\$\_ENV}} \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{\$GLOBALS}} \newline % Row Count 23 (+ 1) {\emph{References all variables available in global scope}} \newline % Row Count 25 (+ 2) An associative array containing references to all variables which are currently defined in the global scope of the script. The variable names are the keys of the array. \newline % Row Count 29 (+ 4) example \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Predefined Variables (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{\$\_SERVER}} \newline % Row Count 5 (+ 1) {\emph{Server and execution environment information}} \newline % Row Count 6 (+ 1) {\bf{$\filledsquare{}$ 8 useful server variables available in PHP:}} http://cdv.lt/Hs \newline % Row Count 8 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{\$\_SERVER{[}'PHP\_SELF'{]}}} \newline % Row Count 11 (+ 1) The filename of the currently executing script, relative to the document root. For instance, \$\_SERVER{[}'PHP\_SELF'{]} in a script at the address \seqsplit{http://example.com/test.php/foo.bar} would be /test.php/foo.bar. The \_\_FILE\_\_ constant contains the full path and filename of the current (i.e. included) file. If PHP is running as a command-line processor this variable contains the script name since PHP 4.3.0. Previously it was not available. \newline % Row Count 20 (+ 9) 'argv' \newline % Row Count 21 (+ 1) Array of arguments passed to the script. When the script is run on the command line, this gives C-style access to the command line parameters. When called via the GET method, this will contain the query string. \newline % Row Count 26 (+ 5) 'argc' \newline % Row Count 27 (+ 1) Contains the number of command line parameters passed to the script (if run on the command line). \newline % Row Count 29 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Predefined Variables (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{\$\_SERVER{[}'GATEWAY\_INTERFACE'{]}}} \newline % Row Count 1 (+ 1) {\emph{What revision of the CGI specification the server is using; i.e. 'CGI/1.1'.}} \newline % Row Count 3 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{\$\_SERVER{[}'SERVER\_ADDR'{]}}} \newline % Row Count 6 (+ 1) {\emph{The IP address of the server under which the current script is executing.}} \newline % Row Count 8 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{\$\_SERVER{[}'SERVER\_NAME'{]}}} \newline % Row Count 11 (+ 1) {\emph{The name of the server host under which the current script is executing. If the script is running on a virtual host, this will be the value defined for that virtual host.}} \newline % Row Count 15 (+ 4) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{\$\_SERVER{[}'SERVER\_SOFTWARE'{]}}} \newline % Row Count 18 (+ 1) {\emph{Server identification string, given in the headers when responding to requests.}} \newline % Row Count 20 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{\$\_SERVER{[}'SERVER\_PROTOCOL'{]}}} \newline % Row Count 23 (+ 1) {\emph{Name and revision of the information protocol via which the page was requested; i.e. 'HTTP/1.0';}} \newline % Row Count 25 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{\$\_SERVER{[}'REQUEST\_METHOD'{]}}} \newline % Row Count 28 (+ 1) {\emph{Which request method was used to access the page; i.e. 'GET', 'HEAD', 'POST', 'PUT'.}} \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Predefined Variables (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Note: \newline % Row Count 1 (+ 1) PHP script is terminated after sending headers (it means after producing any output without output buffering) if the request method was HEAD. \newline % Row Count 4 (+ 3) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{\$\_SERVER{[}'REQUEST\_TIME'{]}}} \newline % Row Count 7 (+ 1) {\emph{The timestamp of the start of the request. Available since PHP 5.1.0.}} \newline % Row Count 9 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{\$\_SERVER{[}'REQUEST\_TIME\_FLOAT'{]}}} \newline % Row Count 12 (+ 1) {\emph{The timestamp of the start of the request, with microsecond precision. Available since PHP 5.4.0.}} \newline % Row Count 14 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{\$\_SERVER{[}'QUERY\_STRING'{]}}} \newline % Row Count 17 (+ 1) {\emph{The query string, if any, via which the page was accessed.}} \newline % Row Count 19 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{\$\_SERVER{[}'DOCUMENT\_ROOT'{]}}} \newline % Row Count 22 (+ 1) {\emph{The document root directory under which the current script is executing, as defined in the server's configuration file.}} \newline % Row Count 25 (+ 3) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{\$\_SERVER{[}'HTTP\_ACCEPT'{]}}} \newline % Row Count 28 (+ 1) {\emph{Contents of the Accept: header from the current request, if there is one.}} \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Predefined Variables (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{\$\_SERVER{[}'HTTP\_ACCEPT\_CHARSET'{]}}} \newline % Row Count 3 (+ 1) {\emph{Contents of the Accept-Charset: header from the current request, if there is one. Example: 'iso-8859-1,}},utf-8'.* \newline % Row Count 6 (+ 3) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{\$\_SERVER{[}'HTTP\_ACCEPT\_ENCODING'{]}}} \newline % Row Count 9 (+ 1) {\emph{Contents of the Accept-Encoding: header from the current request, if there is one. Example: 'gzip'.}} \newline % Row Count 12 (+ 3) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{\$\_SERVER{[}'HTTP\_ACCEPT\_LANGUAGE'{]}}} \newline % Row Count 15 (+ 1) {\emph{Contents of the Accept-Language: header from the current request, if there is one. Example: 'en'.}} \newline % Row Count 17 (+ 2) {\bf{$\filledsquare{}$ Detect Browser Language in PHP:}} http://cdv.lt/I5 \newline % Row Count 19 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{\$\_SERVER{[}'HTTP\_CONNECTION'{]}}} \newline % Row Count 22 (+ 1) {\emph{Contents of the Connection: header from the current request, if there is one. Example: 'Keep-Alive'.}} \newline % Row Count 25 (+ 3) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{\$\_SERVER{[}'HTTP\_HOST'{]}}} \newline % Row Count 28 (+ 1) {\emph{Contents of the Host: header from the current request, if there is one.}} \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Predefined Variables (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{\$\_SERVER{[}'HTTP\_REFERER'{]}}} \newline % Row Count 3 (+ 1) {\emph{The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP\_REFERER as a feature. In short, it cannot really be trusted.}} \newline % Row Count 9 (+ 6) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{\$\_SERVER{[}'HTTP\_USER\_AGENT'{]}}} \newline % Row Count 12 (+ 1) {\emph{Contents of the User-Agent: header from the current request, if there is one. This is a string denoting the user agent being which is accessing the page. A typical example is: Mozilla/4.5 {[}en{]} (X11; U; Linux 2.2.9 i586). Among other things, you can use this value with get\_browser() to tailor your page's output to the capabilities of the user agent.}} \newline % Row Count 20 (+ 8) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{\$\_SERVER{[}'HTTPS'{]}}} \newline % Row Count 23 (+ 1) {\emph{Set to a non-empty value if the script was queried through the HTTPS protocol.}} \newline % Row Count 25 (+ 2) Note: Note that when using ISAPI with IIS, the value will be off if the request was not made through the HTTPS protocol. \newline % Row Count 28 (+ 3) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Predefined Variables (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{\$\_SERVER{[}'REMOTE\_ADDR'{]}}} \newline % Row Count 1 (+ 1) {\emph{The IP address from which the user is viewing the current page.}} \newline % Row Count 3 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{\$\_SERVER{[}'REMOTE\_HOST'{]}}} \newline % Row Count 6 (+ 1) {\emph{The Host name from which the user is viewing the current page. The reverse dns lookup is based off the REMOTE\_ADDR of the user.}} \newline % Row Count 9 (+ 3) Note: Your web server must be configured to create this variable. For example in Apache you'll need HostnameLookups On inside httpd.conf for it to exist. See also gethostbyaddr(). \newline % Row Count 13 (+ 4) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{\$\_SERVER{[}'REMOTE\_PORT'{]}}} \newline % Row Count 16 (+ 1) {\emph{The port being used on the user's machine to communicate with the web server.}} \newline % Row Count 18 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{\$\_SERVER{[}'REMOTE\_USER'{]}}} \newline % Row Count 21 (+ 1) {\emph{The authenticated user.}} \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{\$\_SERVER{[}'REDIRECT\_REMOTE\_USER'{]}}} \newline % Row Count 25 (+ 1) {\emph{The authenticated user if the request is internally redirected.}} \newline % Row Count 27 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{\$\_SERVER{[}'SCRIPT\_FILENAME'{]}}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Predefined Variables (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{The absolute pathname of the currently executing script.}} \newline % Row Count 2 (+ 2) Note: \newline % Row Count 3 (+ 1) If a script is executed with the CLI, as a relative path, such as file.php or ../file.php, \$\_SERVER{[}'SCRIPT\_FILENAME'{]} will contain the relative path specified by the user. \newline % Row Count 7 (+ 4) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 9 (+ 2) {\bf{\$\_SERVER{[}'SERVER\_ADMIN'{]}}} \newline % Row Count 10 (+ 1) {\emph{The value given to the SERVER\_ADMIN (for Apache) directive in the web server configuration file. If the script is running on a virtual host, this will be the value defined for that virtual host.}} \newline % Row Count 14 (+ 4) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{\$\_SERVER{[}'SERVER\_PORT'{]}}} \newline % Row Count 17 (+ 1) {\emph{The port on the server machine being used by the web server for communication. For default setups, this will be '80'; using SSL, for instance, will change this to whatever your defined secure HTTP port is.}} \newline % Row Count 22 (+ 5) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{\$\_SERVER{[}'SERVER\_SIGNATURE'{]}}} \newline % Row Count 25 (+ 1) {\emph{String containing the server version and virtual host name which are added to server-generated pages, if enabled.}} \newline % Row Count 28 (+ 3) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Predefined Variables (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{\$\_SERVER{[}'PATH\_TRANSLATED'{]}}} \newline % Row Count 1 (+ 1) {\emph{Filesystem- (not document root-) based path to the current script, after the server has done any virtual-to-real mapping.}} \newline % Row Count 4 (+ 3) Note: As of PHP 4.3.2, PATH\_TRANSLATED is no longer set implicitly under the Apache 2 SAPI in contrast to the situation in Apache 1, where it's set to the same value as the SCRIPT\_FILENAME server variable when it's not populated by Apache. This change was made to comply with the CGI specification that PATH\_TRANSLATED should only exist if PATH\_INFO is defined. Apache 2 users may use AcceptPathInfo = On inside httpd.conf to define PATH\_INFO. \newline % Row Count 13 (+ 9) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{\$\_SERVER{[}'SCRIPT\_NAME'{]}}} \newline % Row Count 16 (+ 1) {\emph{Contains the current script's path. This is useful for pages which need to point to themselves. The \_\_FILE\_\_ constant contains the full path and filename of the current (i.e. included) file.}} \newline % Row Count 20 (+ 4) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{\$\_SERVER{[}'REQUEST\_URI'{]}}} \newline % Row Count 23 (+ 1) {\emph{The URI which was given in order to access this page; for instance, '/index.html'.}} \newline % Row Count 25 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{\$\_SERVER{[}'PHP\_AUTH\_DIGEST'{]}}} \newline % Row Count 28 (+ 1) {\emph{When doing Digest HTTP authentication this variable is set to the 'Authorization' header sent by the client (which you should then use to make the appropriate validation).}} \newline % Row Count 32 (+ 4) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Predefined Variables (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{\$\_SERVER{[}'PHP\_AUTH\_USER'{]}}} \newline % Row Count 3 (+ 1) {\emph{When doing HTTP authentication this variable is set to the username provided by the user.}} \newline % Row Count 5 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{\$\_SERVER{[}'PHP\_AUTH\_PW'{]}}} \newline % Row Count 8 (+ 1) {\emph{When doing HTTP authentication this variable is set to the password provided by the user.}} \newline % Row Count 10 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{\$\_SERVER{[}'AUTH\_TYPE'{]}}} \newline % Row Count 13 (+ 1) {\emph{When doing HTTP authenticated this variable is set to the authentication type.}} \newline % Row Count 15 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{\$\_SERVER{[}'PATH\_INFO'{]}}} \newline % Row Count 18 (+ 1) {\emph{Contains any client-provided pathname information trailing the actual script filename but preceding the query string, if available. For instance, if the current script was accessed via the URL \seqsplit{http://www.example.com/php/path\_info.php/some/stuff?foo=bar}, then \$\_SERVER{[}'PATH\_INFO'{]} would contain /some/stuff.}} \newline % Row Count 25 (+ 7) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{\$\_SERVER{[}'ORIG\_PATH\_INFO'{]}}} \newline % Row Count 28 (+ 1) {\emph{Original version of 'PATH\_INFO' before processed by PHP.}} \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Predefined Variables (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{\$\_GET}} \newline % Row Count 5 (+ 1) {\emph{HTTP GET variables}} \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{\$\_POST}} \newline % Row Count 11 (+ 1) {\emph{HTTP POST variables}} \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{\$\_FILES}} \newline % Row Count 17 (+ 1) {\emph{HTTP File Upload variables}} \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{\$\_REQUEST}} \newline % Row Count 23 (+ 1) {\emph{HTTP Request variables}} \newline % Row Count 24 (+ 1) An associative array that by default contains the contents of \$\_GET, \$\_POST and \$\_COOKIE. \newline % Row Count 26 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Predefined Variables (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{\$\_SESSION}} \newline % Row Count 1 (+ 1) {\emph{Session variables}} \newline % Row Count 2 (+ 1) An associative array containing session variables available to the current script. See the Session functions documentation for more information on how this is used. \newline % Row Count 6 (+ 4) Session functions: \newline % Row Count 7 (+ 1) \seqsplit{http://php.net/manual/en/ref.session.php} \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{\$\_ENV}} \newline % Row Count 13 (+ 1) {\emph{Environment variables}} \newline % Row Count 14 (+ 1) An associative array of variables passed to the current script via the environment method. \newline % Row Count 16 (+ 2) These variables are imported into PHP's global namespace from the environment under which the PHP parser is running. Many are provided by the shell under which PHP is running and different systems are likely running different kinds of shells, a definitive list is impossible. Please see your shell's documentation for a list of defined environment variables. \newline % Row Count 24 (+ 8) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{\$\_COOKIE}} \newline % Row Count 29 (+ 1) {\emph{HTTP Cookies}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Predefined Variables (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{An associative array of variables passed to the current script via HTTP Cookies. \newline % Row Count 2 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{\$php\_errormsg}} \newline % Row Count 7 (+ 1) *The previous error message \newline % Row Count 8 (+ 1) \$php\_errormsg is a variable containing the text of the last error message generated by PHP. This variable will only be available within the scope in which the error occurred, and only if the track\_errors configuration option is turned on (it defaults to off).* \newline % Row Count 14 (+ 6) Note: This variable is only available when track\_errors is enabled in php.ini. \newline % Row Count 16 (+ 2) Warning: If a user defined error handler ( set\_error\_handler()) is set \$php\_errormsg is only set if the error handler returns FALSE. \newline % Row Count 19 (+ 3) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{\$HTTP\_RAW\_POST\_DATA}} \newline % Row Count 24 (+ 1) {\emph{Raw POST data}} \newline % Row Count 25 (+ 1) \$HTTP\_RAW\_POST\_DATA contains the raw POST data. \newline % Row Count 26 (+ 1) See \seqsplit{always\_populate\_raw\_post\_data} \newline % Row Count 27 (+ 1) \seqsplit{http://php.net/manual/en/ini.core.php\#ini.always-populate-raw-post-data} \newline % Row Count 29 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Predefined Variables (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{\$http\_response\_header}} \newline % Row Count 3 (+ 1) {\emph{HTTP response headers}} \newline % Row Count 4 (+ 1) The \$http\_response\_header array is similar to the {\emph{get\_headers()}} function. When using the HTTP wrapper, {\emph{\$http\_response\_header}} will be populated with the HTTP response headers. {\emph{\$http\_response\_header}} will be created in the {\emph{local scope}}. \newline % Row Count 9 (+ 5) \seqsplit{http://php.net/manual/en/wrappers.http.php} \newline % Row Count 10 (+ 1) \seqsplit{http://php.net/manual/en/language.variables.scope.php} \newline % Row Count 12 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{\$argc}} \newline % Row Count 17 (+ 1) {\emph{The number of arguments passed to script}} \newline % Row Count 18 (+ 1) Contains the number of arguments passed to the current script when running from the command line. \newline % Row Count 20 (+ 2) Note: The script's filename is always passed as an argument to the script, therefore the minimum value of \$argc is 1. \newline % Row Count 23 (+ 3) Note: This variable is not available when register\_argc\_argv is disabled. \newline % Row Count 25 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{\$argv}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Predefined Variables (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Array of arguments passed to script}} \newline % Row Count 1 (+ 1) Contains an array of all the arguments passed to the script when running from the command line. \newline % Row Count 3 (+ 2) Note: The first argument \$argv{[}0{]} is always the name that was used to run the script. \newline % Row Count 5 (+ 2) Note: This variable is not available when register\_argc\_argv is disabled. \newline % Row Count 7 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-% Row Count 9 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{array\_change\_key\_case()}} \newline % Row Count 1 (+ 1) {\emph{Changes all keys in an array}} \newline % Row Count 2 (+ 1) $\filledsquare{}$ http://cdv.lt/Hn \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{array\_chunk()}} \newline % Row Count 6 (+ 1) {\emph{Split an array into chunks}} \newline % Row Count 7 (+ 1) $\filledsquare{}$ http://cdv.lt/Ho \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{array\_combine()}} \newline % Row Count 11 (+ 1) {\emph{Creates an array by using one array for keys and another for its values}} \newline % Row Count 13 (+ 2) $\filledsquare{}$ http://cdv.lt/Ht \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{array\_count\_values()}} \newline % Row Count 17 (+ 1) {\emph{Counts all the values of an array}} \newline % Row Count 18 (+ 1) $\filledsquare{}$ http://cdv.lt/Hv \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{array\_diff\_assoc()}} \newline % Row Count 22 (+ 1) {\emph{Computes the difference of arrays with additional index check}} \newline % Row Count 24 (+ 2) $\filledsquare{}$ http://cdv.lt/Hw \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{array\_diff\_key()}} \newline % Row Count 28 (+ 1) {\emph{Computes the difference of arrays using keys for comparison}} \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{$\filledsquare{}$ http://cdv.lt/Hx \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{array\_diff\_uassoc()}} \newline % Row Count 4 (+ 1) {\emph{Computes the difference of arrays with additional index check which is performed by a user supplied callback function}} \newline % Row Count 7 (+ 3) $\filledsquare{}$ http://cdv.lt/I1 \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{array\_diff\_ukey()}} \newline % Row Count 11 (+ 1) {\emph{Computes the difference of arrays using a callback function on the keys for comparison}} \newline % Row Count 13 (+ 2) $\filledsquare{}$ http://cdv.lt/I2 \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{array\_diff()}} \newline % Row Count 17 (+ 1) {\emph{Computes the difference of arrays}} \newline % Row Count 18 (+ 1) $\filledsquare{}$ http://cdv.lt/I3 \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{array\_fill\_keys()}} \newline % Row Count 22 (+ 1) {\emph{Fill an array with values, specifying keys}} \newline % Row Count 23 (+ 1) $\filledsquare{}$ http://cdv.lt/IH \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{array\_fill()}} \newline % Row Count 27 (+ 1) {\emph{Fill an array with values}} \newline % Row Count 28 (+ 1) $\filledsquare{}$ http://cdv.lt/II \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{array\_filter()}} \newline % Row Count 1 (+ 1) {\emph{Filters elements of an array using a callback function}} \newline % Row Count 3 (+ 2) $\filledsquare{}$ http://cdv.lt/IJ \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{array\_flip()}} \newline % Row Count 7 (+ 1) {\emph{Exchanges all keys with their associated values in an array}} \newline % Row Count 9 (+ 2) example \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{array\_intersect\_assoc()}} \newline % Row Count 13 (+ 1) {\emph{Computes the intersection of arrays with additional index check}} \newline % Row Count 15 (+ 2) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{array\_intersect\_key()}} \newline % Row Count 19 (+ 1) {\emph{Computes the intersection of arrays using keys for comparison}} \newline % Row Count 21 (+ 2) example \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{array\_intersect\_uassoc()}} \newline % Row Count 25 (+ 1) {\emph{Computes the intersection of arrays with additional index check, compares indexes by a callback function}} \newline % Row Count 28 (+ 3) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{array\_intersect\_ukey()}} \newline % Row Count 1 (+ 1) {\emph{Computes the intersection of arrays using a callback function on the keys for comparison}} \newline % Row Count 3 (+ 2) example \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{array\_intersect()}} \newline % Row Count 7 (+ 1) {\emph{Computes the intersection of arrays}} \newline % Row Count 8 (+ 1) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{array\_key\_exists()}} \newline % Row Count 12 (+ 1) {\emph{Checks if the given key or index exists in the array}} \newline % Row Count 14 (+ 2) example \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{array\_keys()}} \newline % Row Count 18 (+ 1) {\emph{Return all the keys or a subset of the keys of an array}} \newline % Row Count 20 (+ 2) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{array\_map()}} \newline % Row Count 24 (+ 1) {\emph{Applies the callback to the elements of the given arrays}} \newline % Row Count 26 (+ 2) example \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{array\_merge\_recursive()}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Merge two or more arrays recursively}} \newline % Row Count 1 (+ 1) example \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{array\_merge()}} \newline % Row Count 5 (+ 1) {\emph{Merge one or more arrays}} \newline % Row Count 6 (+ 1) example \newline % Row Count 7 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 9 (+ 2) {\bf{array\_pad()}} \newline % Row Count 10 (+ 1) {\emph{Pad array to the specified length with a value}} \newline % Row Count 11 (+ 1) example \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{array\_pop()}} \newline % Row Count 15 (+ 1) {\emph{Pop the element off the end of array}} \newline % Row Count 16 (+ 1) example \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{array\_product()}} \newline % Row Count 20 (+ 1) {\emph{Calculate the product of values in an array}} \newline % Row Count 21 (+ 1) example \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{array\_push()}} \newline % Row Count 25 (+ 1) {\emph{Push one or more elements onto the end of array}} \newline % Row Count 26 (+ 1) example \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{array\_rand()}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Pick one or more random entries out of an array}} \newline % Row Count 1 (+ 1) example \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{array\_reduce()}} \newline % Row Count 5 (+ 1) {\emph{Iteratively reduce the array to a single value using a callback function}} \newline % Row Count 7 (+ 2) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{array\_replace\_recursive()}} \newline % Row Count 11 (+ 1) {\emph{Replaces elements from passed arrays into the first array recursively}} \newline % Row Count 13 (+ 2) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{array\_replace()}} \newline % Row Count 17 (+ 1) {\emph{Replaces elements from passed arrays into the first array}} \newline % Row Count 19 (+ 2) example \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{array\_reverse()}} \newline % Row Count 23 (+ 1) {\emph{Return an array with elements in reverse order}} \newline % Row Count 24 (+ 1) example \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{array\_search()}} \newline % Row Count 28 (+ 1) {\emph{Searches the array for a given value and returns the corresponding key if successful}} \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{array\_shift()}} \newline % Row Count 4 (+ 1) {\emph{Shift an element off the beginning of array}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{array\_slice()}} \newline % Row Count 9 (+ 1) {\emph{Extract a slice of the array}} \newline % Row Count 10 (+ 1) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{array\_splice()}} \newline % Row Count 14 (+ 1) {\emph{Remove a portion of the array and replace it with something else}} \newline % Row Count 16 (+ 2) example \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{array\_sum()}} \newline % Row Count 20 (+ 1) {\emph{Calculate the sum of values in an array}} \newline % Row Count 21 (+ 1) example \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{array\_udiff\_assoc()}} \newline % Row Count 25 (+ 1) {\emph{Computes the difference of arrays with additional index check, compares data by a callback function}} \newline % Row Count 28 (+ 3) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{array\_udiff\_uassoc()}} \newline % Row Count 1 (+ 1) {\emph{Computes the difference of arrays with additional index check, compares data and indexes by a callback function}} \newline % Row Count 4 (+ 3) example \newline % Row Count 5 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{array\_udiff()}} \newline % Row Count 8 (+ 1) {\emph{Computes the difference of arrays by using a callback function for data comparison}} \newline % Row Count 10 (+ 2) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{array\_uintersect\_assoc()}} \newline % Row Count 14 (+ 1) {\emph{Computes the intersection of arrays with additional index check, compares data by a callback function}} \newline % Row Count 17 (+ 3) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{array\_uintersect\_uassoc()}} \newline % Row Count 21 (+ 1) {\emph{Computes the intersection of arrays with additional index check, compares data and indexes by a callback functions}} \newline % Row Count 24 (+ 3) example \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{array\_uintersect()}} \newline % Row Count 28 (+ 1) {\emph{Computes the intersection of arrays, compares data by a callback function}} \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{array\_unique()}} \newline % Row Count 4 (+ 1) {\emph{Removes duplicate values from an array}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{array\_unshift()}} \newline % Row Count 9 (+ 1) {\emph{Prepend one or more elements to the beginning of an array}} \newline % Row Count 11 (+ 2) example \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{array\_values()}} \newline % Row Count 15 (+ 1) {\emph{Return all the values of an array}} \newline % Row Count 16 (+ 1) example \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{array\_walk\_recursive()}} \newline % Row Count 20 (+ 1) {\emph{Apply a user function recursively to every member of an array}} \newline % Row Count 22 (+ 2) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{array\_walk()}} \newline % Row Count 26 (+ 1) {\emph{Apply a user function to every member of an array}} \newline % Row Count 28 (+ 2) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{array()}} \newline % Row Count 1 (+ 1) {\emph{Create an array}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{compact()}} \newline % Row Count 6 (+ 1) {\emph{Create array containing variables and their values}} \newline % Row Count 8 (+ 2) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{count()}} \newline % Row Count 12 (+ 1) {\emph{Count all elements in an array, or something in an object}} \newline % Row Count 14 (+ 2) example \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{current()}} \newline % Row Count 18 (+ 1) {\emph{Return the current element in an array}} \newline % Row Count 19 (+ 1) example \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{each()}} \newline % Row Count 23 (+ 1) {\emph{Return the current key and value pair from an array and advance the array cursor}} \newline % Row Count 25 (+ 2) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{end()}} \newline % Row Count 29 (+ 1) {\emph{Set the internal pointer of an array to its last element}} \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{extract()}} \newline % Row Count 4 (+ 1) {\emph{Import variables into the current symbol table from an array}} \newline % Row Count 6 (+ 2) example \newline % Row Count 7 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 9 (+ 2) {\bf{in\_array()}} \newline % Row Count 10 (+ 1) {\emph{Checks if a value exists in an array}} \newline % Row Count 11 (+ 1) example \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{key()}} \newline % Row Count 15 (+ 1) {\emph{Fetch a key from an array}} \newline % Row Count 16 (+ 1) example \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{list()}} \newline % Row Count 20 (+ 1) {\emph{Assign variables as if they were an array}} \newline % Row Count 21 (+ 1) example \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{next()}} \newline % Row Count 25 (+ 1) {\emph{Advance the internal array pointer of an array}} \newline % Row Count 26 (+ 1) example \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{pos()}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Alias of current}} \newline % Row Count 1 (+ 1) example \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{prev()}} \newline % Row Count 5 (+ 1) {\emph{Rewind the internal array pointer}} \newline % Row Count 6 (+ 1) example \newline % Row Count 7 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 9 (+ 2) {\bf{range()}} \newline % Row Count 10 (+ 1) {\emph{Create an array containing a range of elements}} \newline % Row Count 11 (+ 1) example \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{reset()}} \newline % Row Count 15 (+ 1) {\emph{Set the internal pointer of an array to its first element}} \newline % Row Count 17 (+ 2) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{sizeof()}} \newline % Row Count 21 (+ 1) {\emph{Alias of count}} \newline % Row Count 22 (+ 1) {\bf{ARRAY SORTING FUNCTIONS}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{array\_multisort()}} \newline % Row Count 27 (+ 1) {\emph{Sort multiple or multi-dimensional arrays}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{asort()}} \newline % Row Count 1 (+ 1) {\emph{Sort an array and maintain index association}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{arsort()}} \newline % Row Count 6 (+ 1) {\emph{Sort an array in reverse order and maintain index association}} \newline % Row Count 8 (+ 2) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{krsort()}} \newline % Row Count 12 (+ 1) {\emph{Sort an array by key in reverse order}} \newline % Row Count 13 (+ 1) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{ksort()}} \newline % Row Count 17 (+ 1) {\emph{Sort an array by key}} \newline % Row Count 18 (+ 1) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{natcasesort()}} \newline % Row Count 22 (+ 1) {\emph{Sort an array using a case insensitive "natural order" algorithm}} \newline % Row Count 24 (+ 2) example \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{natsort()}} \newline % Row Count 28 (+ 1) {\emph{Sort an array using a "natural order" algorithm}} \newline % Row Count 29 (+ 1) example \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{rsort()}} \newline % Row Count 3 (+ 1) {\emph{Sort an array in reverse order}} \newline % Row Count 4 (+ 1) example \newline % Row Count 5 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{shuffle()}} \newline % Row Count 8 (+ 1) {\emph{Shuffle an array}} \newline % Row Count 9 (+ 1) example \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{sort()}} \newline % Row Count 13 (+ 1) {\emph{Sort an array}} \newline % Row Count 14 (+ 1) example \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{uasort()}} \newline % Row Count 18 (+ 1) {\emph{Sort an array with a user-defined comparison function and maintain index association}} \newline % Row Count 20 (+ 2) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{uksort()}} \newline % Row Count 24 (+ 1) {\emph{Sort an array by keys using a user-defined comparison function}} \newline % Row Count 26 (+ 2) example \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{usort()}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Sort an array by values using a user-defined comparison function}} \newline % Row Count 2 (+ 2) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{Comparison of array sorting functions}} \newline % Row Count 8 (+ 1) \seqsplit{http://php.net/manual/en/array.sorting.php} \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{ARRAY CONSTANTS}} \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{CASE\_LOWER}} \newline % Row Count 17 (+ 1) {\emph{Used with \seqsplit{array\_change\_key\_case()} to convert array keys to lower case}} \newline % Row Count 19 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{CASE\_UPPER}} \newline % Row Count 22 (+ 1) {\emph{Used with \seqsplit{array\_change\_key\_case()} to convert array keys to upper case}} \newline % Row Count 24 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{SORT\_ASC}} \newline % Row Count 27 (+ 1) {\emph{Used with array\_multisort() to sort in ascending order}} \newline % Row Count 29 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{SORT\_DESC}} \newline % Row Count 1 (+ 1) {\emph{Used with array\_multisort() to sort in descending order}} \newline % Row Count 3 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{SORT\_REGULAR}} \newline % Row Count 6 (+ 1) {\emph{Used to compare items normally}} \newline % Row Count 7 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 9 (+ 2) {\bf{SORT\_NUMERIC}} \newline % Row Count 10 (+ 1) {\emph{Used to compare items numerically}} \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{SORT\_STRING}} \newline % Row Count 14 (+ 1) {\emph{Used to compare items as strings}} \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{SORT\_LOCALE\_STRING}} \newline % Row Count 18 (+ 1) {\emph{Used to compare items as strings, based on the current locale}} \newline % Row Count 20 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{COUNT\_NORMAL}} \newline % Row Count 23 (+ 1) {\bf{COUNT\_RECURSIVE}} \newline % Row Count 24 (+ 1) {\bf{EXTR\_OVERWRITE}} \newline % Row Count 25 (+ 1) {\bf{EXTR\_SKIP}} \newline % Row Count 26 (+ 1) {\bf{EXTR\_PREFIX\_SAME}} \newline % Row Count 27 (+ 1) {\bf{EXTR\_PREFIX\_ALL}} \newline % Row Count 28 (+ 1) {\bf{EXTR\_PREFIX\_INVALID}} \newline % Row Count 29 (+ 1) {\bf{EXTR\_PREFIX\_IF\_EXISTS}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Array Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{EXTR\_IF\_EXISTS}} \newline % Row Count 1 (+ 1) {\bf{EXTR\_REFS}}% Row Count 2 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{addcslashes()}} \newline % Row Count 1 (+ 1) {\emph{Quote string with slashes in a C style}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{addslashes()}} \newline % Row Count 6 (+ 1) {\emph{Quote string with slashes}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{bin2hex()}} \newline % Row Count 11 (+ 1) {\emph{Convert binary data into hexadecimal representation}} \newline % Row Count 13 (+ 2) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{chop()}} \newline % Row Count 17 (+ 1) {\emph{Alias of rtrim}} \newline % Row Count 18 (+ 1) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{chr()}} \newline % Row Count 22 (+ 1) {\emph{Return a specific character}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{chunk\_split()}} \newline % Row Count 27 (+ 1) {\emph{Split a string into smaller chunks}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{convert\_cyr\_string()}} \newline % Row Count 1 (+ 1) {\emph{Convert from one Cyrillic character set to another}} \newline % Row Count 3 (+ 2) example \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{convert\_uudecode()}} \newline % Row Count 7 (+ 1) {\emph{Decode a uuencoded string}} \newline % Row Count 8 (+ 1) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{convert\_uuencode()}} \newline % Row Count 12 (+ 1) {\emph{Uuencode a string}} \newline % Row Count 13 (+ 1) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{count\_chars()}} \newline % Row Count 17 (+ 1) {\emph{Return information about characters used in a string}} \newline % Row Count 19 (+ 2) example \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{crc32()}} \newline % Row Count 23 (+ 1) {\emph{Calculates the crc32 polynomial of a string}} \newline % Row Count 24 (+ 1) example \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{crypt()}} \newline % Row Count 28 (+ 1) {\emph{One-way string hashing}} \newline % Row Count 29 (+ 1) example \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{echo()}} \newline % Row Count 3 (+ 1) {\emph{Output one or more strings}} \newline % Row Count 4 (+ 1) $\filledsquare{}$ http://cdv.lt/Hm \newline % Row Count 5 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{explode()}} \newline % Row Count 8 (+ 1) {\emph{Split a string by string}} \newline % Row Count 9 (+ 1) example \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{fprintf()}} \newline % Row Count 13 (+ 1) {\emph{Write a formatted string to a stream}} \newline % Row Count 14 (+ 1) example \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{get\_html\_translation\_table()}} \newline % Row Count 18 (+ 1) {\emph{Returns the translation table used by htmlspecialchars and htmlentities}} \newline % Row Count 20 (+ 2) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{hebrev()}} \newline % Row Count 24 (+ 1) {\emph{Convert logical Hebrew text to visual text}} \newline % Row Count 25 (+ 1) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{hebrevc()}} \newline % Row Count 29 (+ 1) {\emph{Convert logical Hebrew text to visual text with newline conversion}} \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{hex2bin()}} \newline % Row Count 4 (+ 1) {\emph{Decodes a hexadecimally encoded binary string}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{html\_entity\_decode()}} \newline % Row Count 9 (+ 1) {\emph{Convert all HTML entities to their applicable characters}} \newline % Row Count 11 (+ 2) example \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{htmlentities()}} \newline % Row Count 15 (+ 1) {\emph{Convert all applicable characters to HTML entities}} \newline % Row Count 17 (+ 2) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{htmlspecialchars\_decode()}} \newline % Row Count 21 (+ 1) {\emph{Convert special HTML entities back to characters}} \newline % Row Count 23 (+ 2) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{htmlspecialchars()}} \newline % Row Count 27 (+ 1) {\emph{Convert special characters to HTML entities}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{implode()}} \newline % Row Count 1 (+ 1) {\emph{Join array elements with a string}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{join()}} \newline % Row Count 6 (+ 1) {\emph{Alias of implode}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{lcfirst()}} \newline % Row Count 11 (+ 1) {\emph{Make a string's first character lowercase}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{levenshtein()}} \newline % Row Count 16 (+ 1) {\emph{Calculate Levenshtein distance between two strings}} \newline % Row Count 18 (+ 2) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{localeconv()}} \newline % Row Count 22 (+ 1) {\emph{Get numeric formatting information}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{ltrim()}} \newline % Row Count 27 (+ 1) {\emph{Strip whitespace (or other characters) from the beginning of a string}} \newline % Row Count 29 (+ 2) example \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{md5\_file()}} \newline % Row Count 3 (+ 1) {\emph{Calculates the md5 hash of a given file}} \newline % Row Count 4 (+ 1) example \newline % Row Count 5 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{md5()}} \newline % Row Count 8 (+ 1) {\emph{Calculate the md5 hash of a string}} \newline % Row Count 9 (+ 1) example \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{metaphone()}} \newline % Row Count 13 (+ 1) {\emph{Calculate the metaphone key of a string}} \newline % Row Count 14 (+ 1) example \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{money\_format()}} \newline % Row Count 18 (+ 1) {\emph{Formats a number as a currency string}} \newline % Row Count 19 (+ 1) example \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{nl\_langinfo()}} \newline % Row Count 23 (+ 1) {\emph{Query language and locale information}} \newline % Row Count 24 (+ 1) example \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{nl2br()}} \newline % Row Count 28 (+ 1) {\emph{Inserts HTML line breaks before all newlines in a string}} \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{number\_format()}} \newline % Row Count 4 (+ 1) {\emph{Format a number with grouped thousands}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{ord()}} \newline % Row Count 9 (+ 1) {\emph{Return ASCII value of character}} \newline % Row Count 10 (+ 1) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{parse\_str()}} \newline % Row Count 14 (+ 1) {\emph{Parses the string into variables}} \newline % Row Count 15 (+ 1) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{print()}} \newline % Row Count 19 (+ 1) {\emph{Output a string}} \newline % Row Count 20 (+ 1) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{printf()}} \newline % Row Count 24 (+ 1) {\emph{Output a formatted string}} \newline % Row Count 25 (+ 1) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{quoted\_printable\_decode()}} \newline % Row Count 29 (+ 1) {\emph{Convert a quoted-printable string to an 8 bit string}} \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{quoted\_printable\_encode()}} \newline % Row Count 4 (+ 1) {\emph{Convert a 8 bit string to a quoted-printable string}} \newline % Row Count 6 (+ 2) example \newline % Row Count 7 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 9 (+ 2) {\bf{quotemeta()}} \newline % Row Count 10 (+ 1) {\emph{Quote meta characters}} \newline % Row Count 11 (+ 1) example \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{rtrim()}} \newline % Row Count 15 (+ 1) {\emph{Strip whitespace (or other characters) from the end of a string}} \newline % Row Count 17 (+ 2) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{setlocale()}} \newline % Row Count 21 (+ 1) {\emph{Set locale information}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{sha1\_file()}} \newline % Row Count 26 (+ 1) {\emph{Calculate the sha1 hash of a file}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{sha1()}} \newline % Row Count 1 (+ 1) {\emph{Calculate the sha1 hash of a string}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{similar\_text()}} \newline % Row Count 6 (+ 1) {\emph{Calculate the similarity between two strings}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{soundex()}} \newline % Row Count 11 (+ 1) {\emph{Calculate the soundex key of a string}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{sprintf()}} \newline % Row Count 16 (+ 1) {\emph{Return a formatted string}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{sscanf()}} \newline % Row Count 21 (+ 1) {\emph{Parses input from a string according to a format}} \newline % Row Count 23 (+ 2) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{str\_getcsv()}} \newline % Row Count 27 (+ 1) {\emph{Parse a CSV string into an array}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{str\_ireplace()}} \newline % Row Count 1 (+ 1) {\emph{Case-insensitive version of str\_replace.}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{str\_pad()}} \newline % Row Count 6 (+ 1) {\emph{Pad a string to a certain length with another string}} \newline % Row Count 8 (+ 2) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{str\_repeat()}} \newline % Row Count 12 (+ 1) {\emph{Repeat a string}} \newline % Row Count 13 (+ 1) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{str\_replace()}} \newline % Row Count 17 (+ 1) {\emph{Replace all occurrences of the search string with the replacement string}} \newline % Row Count 19 (+ 2) example \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{str\_rot13()}} \newline % Row Count 23 (+ 1) {\emph{Perform the rot13 transform on a string}} \newline % Row Count 24 (+ 1) example \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{str\_shuffle()}} \newline % Row Count 28 (+ 1) {\emph{Randomly shuffles a string}} \newline % Row Count 29 (+ 1) example \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{str\_split()}} \newline % Row Count 3 (+ 1) {\emph{Convert a string to an array}} \newline % Row Count 4 (+ 1) example \newline % Row Count 5 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{str\_word\_count()}} \newline % Row Count 8 (+ 1) {\emph{Return information about words used in a string}} \newline % Row Count 9 (+ 1) example \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{strcasecmp()}} \newline % Row Count 13 (+ 1) {\emph{Binary safe case-insensitive string comparison}} \newline % Row Count 14 (+ 1) example \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{strchr()}} \newline % Row Count 18 (+ 1) {\emph{Alias of strstr}} \newline % Row Count 19 (+ 1) example \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{strcmp()}} \newline % Row Count 23 (+ 1) {\emph{Binary safe string comparison}} \newline % Row Count 24 (+ 1) example \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{strcoll()}} \newline % Row Count 28 (+ 1) {\emph{Locale based string comparison}} \newline % Row Count 29 (+ 1) example \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{strcspn()}} \newline % Row Count 3 (+ 1) {\emph{Find length of initial segment not matching mask}} \newline % Row Count 5 (+ 2) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{strip\_tags()}} \newline % Row Count 9 (+ 1) {\emph{Strip HTML and PHP tags from a string}} \newline % Row Count 10 (+ 1) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{stripcslashes()}} \newline % Row Count 14 (+ 1) {\emph{Un-quote string quoted with addcslashes}} \newline % Row Count 15 (+ 1) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{stripos()}} \newline % Row Count 19 (+ 1) {\emph{Find the position of the first occurrence of a case-insensitive substring in a string}} \newline % Row Count 21 (+ 2) example \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{stripslashes()}} \newline % Row Count 25 (+ 1) {\emph{Un-quotes a quoted string}} \newline % Row Count 26 (+ 1) example \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{stristr()}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Case-insensitive strstr}} \newline % Row Count 1 (+ 1) example \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{strlen()}} \newline % Row Count 5 (+ 1) {\emph{Get string length}} \newline % Row Count 6 (+ 1) example \newline % Row Count 7 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 9 (+ 2) {\bf{strnatcasecmp()}} \newline % Row Count 10 (+ 1) {\emph{Case insensitive string comparisons using a "natural order" algorithm}} \newline % Row Count 12 (+ 2) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{strnatcmp()}} \newline % Row Count 16 (+ 1) {\emph{String comparisons using a "natural order" algorithm}} \newline % Row Count 18 (+ 2) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{strncasecmp()}} \newline % Row Count 22 (+ 1) {\emph{Binary safe case-insensitive string comparison of the first n characters}} \newline % Row Count 24 (+ 2) example \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{strncmp()}} \newline % Row Count 28 (+ 1) {\emph{Binary safe string comparison of the first n characters}} \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{strpbrk()}} \newline % Row Count 4 (+ 1) {\emph{Search a string for any of a set of characters}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{strpos()}} \newline % Row Count 9 (+ 1) {\emph{Find the position of the first occurrence of a substring in a string}} \newline % Row Count 11 (+ 2) example \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{strrchr()}} \newline % Row Count 15 (+ 1) {\emph{Find the last occurrence of a character in a string}} \newline % Row Count 17 (+ 2) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{strrev()}} \newline % Row Count 21 (+ 1) {\emph{Reverse a string}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{strripos()}} \newline % Row Count 26 (+ 1) {\emph{Find the position of the last occurrence of a case-insensitive substring in a string}} \newline % Row Count 28 (+ 2) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{strrpos()}} \newline % Row Count 1 (+ 1) {\emph{Find the position of the last occurrence of a substring in a string}} \newline % Row Count 3 (+ 2) example \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{strspn()}} \newline % Row Count 7 (+ 1) {\emph{Finds the length of the initial segment of a string consisting entirely of characters contained within a given mask.}} \newline % Row Count 10 (+ 3) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{strstr()}} \newline % Row Count 14 (+ 1) {\emph{Find the first occurrence of a string}} \newline % Row Count 15 (+ 1) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{strtok()}} \newline % Row Count 19 (+ 1) {\emph{Tokenize string}} \newline % Row Count 20 (+ 1) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{strtolower()}} \newline % Row Count 24 (+ 1) {\emph{Make a string lowercase}} \newline % Row Count 25 (+ 1) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{strtoupper()}} \newline % Row Count 29 (+ 1) {\emph{Make a string uppercase}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{strtr()}} \newline % Row Count 4 (+ 1) {\emph{Translate characters or replace substrings}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{substr\_compare()}} \newline % Row Count 9 (+ 1) {\emph{Binary safe comparison of two strings from an offset, up to length characters}} \newline % Row Count 11 (+ 2) example \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{substr\_count()}} \newline % Row Count 15 (+ 1) {\emph{Count the number of substring occurrences}} \newline % Row Count 16 (+ 1) example \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{substr\_replace()}} \newline % Row Count 20 (+ 1) {\emph{Replace text within a portion of a string}} \newline % Row Count 21 (+ 1) example \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{substr()}} \newline % Row Count 25 (+ 1) {\emph{Return part of a string}} \newline % Row Count 26 (+ 1) example \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{trim()}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Strip whitespace (or other characters) from the beginning and end of a string}} \newline % Row Count 2 (+ 2) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{ucfirst()}} \newline % Row Count 6 (+ 1) {\emph{Make a string's first character uppercase}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{ucwords()}} \newline % Row Count 11 (+ 1) {\emph{Uppercase the first character of each word in a string}} \newline % Row Count 13 (+ 2) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{vfprintf()}} \newline % Row Count 17 (+ 1) {\emph{Write a formatted string to a stream}} \newline % Row Count 18 (+ 1) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{vprintf()}} \newline % Row Count 22 (+ 1) {\emph{Output a formatted string}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{vsprintf()}} \newline % Row Count 27 (+ 1) {\emph{Return a formatted string}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{wordwrap()}} \newline % Row Count 1 (+ 1) {\emph{Wraps a string to a given number of characters}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{STRING CONSTANTS}} \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{CRYPT\_SALT\_LENGTH}} \newline % Row Count 11 (+ 1) {\emph{Contains the length of the default encryption method for the system. For standard DES encryption, the length is 2}} \newline % Row Count 14 (+ 3) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{CRYPT\_STD\_DES}} \newline % Row Count 17 (+ 1) {\emph{Set to 1 if the standard DES-based encryption with a 2 character salt is supported, 0 otherwise}} \newline % Row Count 19 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{CRYPT\_EXT\_DES}} \newline % Row Count 22 (+ 1) {\emph{Set to 1 if the extended DES-based encryption with a 9 character salt is supported, 0 otherwise}} \newline % Row Count 24 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{CRYPT\_MD5}} \newline % Row Count 27 (+ 1) {\emph{Set to 1 if the MD5 encryption with a 12 character salt starting with \$1\$ is supported, 0 otherwise}} \newline % Row Count 30 (+ 3) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP String Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{CRYPT\_BLOWFISH}} \newline % Row Count 3 (+ 1) {\emph{Set to 1 if the Blowfish encryption with a 16 character salt starting with \$2\$ or \$2a\$ is supported, 0 otherwise0}} \newline % Row Count 6 (+ 3) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{HTML\_SPECIALCHARS}} \newline % Row Count 9 (+ 1) {\bf{HTML\_ENTITIES}} \newline % Row Count 10 (+ 1) {\bf{ENT\_COMPAT}} \newline % Row Count 11 (+ 1) {\bf{ENT\_QUOTES}} \newline % Row Count 12 (+ 1) {\bf{ENT\_NOQUOTES}} \newline % Row Count 13 (+ 1) {\bf{CHAR\_MAX}} \newline % Row Count 14 (+ 1) {\bf{LC\_CTYPE}} \newline % Row Count 15 (+ 1) {\bf{LC\_NUMERIC}} \newline % Row Count 16 (+ 1) {\bf{LC\_TIME}} \newline % Row Count 17 (+ 1) {\bf{LC\_COLLATE}} \newline % Row Count 18 (+ 1) {\bf{LC\_MONETARY}} \newline % Row Count 19 (+ 1) {\bf{LC\_ALL}} \newline % Row Count 20 (+ 1) {\bf{LC\_MESSAGES}} \newline % Row Count 21 (+ 1) {\bf{STR\_PAD\_LEFT}} \newline % Row Count 22 (+ 1) {\bf{STR\_PAD\_RIGHT}} \newline % Row Count 23 (+ 1) {\bf{STR\_PAD\_BOTH}}% Row Count 24 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Date/Time Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{checkdate()}} \newline % Row Count 1 (+ 1) {\emph{Validate a Gregorian date}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{date\_add()}} \newline % Row Count 6 (+ 1) {\emph{Alias of DateTime::add}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{date\_create\_from\_format()}} \newline % Row Count 11 (+ 1) {\emph{Alias of DateTime::createFromFormat}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{date\_create()}} \newline % Row Count 16 (+ 1) {\emph{Alias of DateTime::\_\_construct}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{date\_date\_set()}} \newline % Row Count 21 (+ 1) {\emph{Alias of DateTime::setDate}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{date\_default\_timezone\_get()}} \newline % Row Count 26 (+ 1) {\emph{Gets the default timezone used by all date/time functions in a script}} \newline % Row Count 28 (+ 2) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Date/Time Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{date\_default\_timezone\_set()}} \newline % Row Count 1 (+ 1) {\emph{Sets the default timezone used by all date/time functions in a script}} \newline % Row Count 3 (+ 2) example \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{date\_diff()}} \newline % Row Count 7 (+ 1) {\emph{Alias of DateTime::diff}} \newline % Row Count 8 (+ 1) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{date\_format()}} \newline % Row Count 12 (+ 1) {\emph{Alias of DateTime::format}} \newline % Row Count 13 (+ 1) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{date\_get\_last\_errors()}} \newline % Row Count 17 (+ 1) {\emph{Alias of DateTime::getLastErrors}} \newline % Row Count 18 (+ 1) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{date\_interval\_create\_from\_date\_string()}} \newline % Row Count 22 (+ 1) {\emph{Alias of DateInterval::createFromDateString}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{date\_interval\_format()}} \newline % Row Count 27 (+ 1) {\emph{Alias of DateInterval::format}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Date/Time Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{date\_isodate\_set()}} \newline % Row Count 1 (+ 1) {\emph{Alias of DateTime::setISODate}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{date\_modify()}} \newline % Row Count 6 (+ 1) {\emph{Alias of DateTime::modify}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{date\_offset\_get()}} \newline % Row Count 11 (+ 1) {\emph{Alias of DateTime::getOffset}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{date\_parse\_from\_format()}} \newline % Row Count 16 (+ 1) {\emph{Get info about given date formatted according to the specified format}} \newline % Row Count 18 (+ 2) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{date\_parse()}} \newline % Row Count 22 (+ 1) {\emph{Returns associative array with detailed info about given date}} \newline % Row Count 24 (+ 2) example \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{date\_sub()}} \newline % Row Count 28 (+ 1) {\emph{Alias of DateTime::sub}} \newline % Row Count 29 (+ 1) example \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Date/Time Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{date\_sun\_info()}} \newline % Row Count 3 (+ 1) {\emph{Returns an array with information about sunset/sunrise and twilight begin/end}} \newline % Row Count 5 (+ 2) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{date\_sunrise()}} \newline % Row Count 9 (+ 1) {\emph{Returns time of sunrise for a given day and location}} \newline % Row Count 11 (+ 2) example \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{date\_sunset()}} \newline % Row Count 15 (+ 1) {\emph{Returns time of sunset for a given day and location}} \newline % Row Count 17 (+ 2) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{date\_time\_set()}} \newline % Row Count 21 (+ 1) {\emph{Alias of DateTime::setTime}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{date\_timestamp\_get()}} \newline % Row Count 26 (+ 1) {\emph{Alias of DateTime::getTimestamp}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Date/Time Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{date\_timestamp\_set()}} \newline % Row Count 1 (+ 1) {\emph{Alias of DateTime::setTimestamp}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{date\_timezone\_get()}} \newline % Row Count 6 (+ 1) {\emph{Alias of DateTime::getTimezone}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{date\_timezone\_set()}} \newline % Row Count 11 (+ 1) {\emph{Alias of DateTime::setTimezone}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{date()}} \newline % Row Count 16 (+ 1) {\emph{Format a local time/date}} \newline % Row Count 17 (+ 1) \seqsplit{http://hu1.php.net/manual/en/function.date.php} \newline % Row Count 18 (+ 1) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{getdate()}} \newline % Row Count 22 (+ 1) {\emph{Get date/time information}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{gettimeofday()}} \newline % Row Count 27 (+ 1) {\emph{Get current time}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Date/Time Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{gmdate()}} \newline % Row Count 1 (+ 1) {\emph{Format a GMT/UTC date/time}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{gmmktime()}} \newline % Row Count 6 (+ 1) {\emph{Get Unix timestamp for a GMT date}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{gmstrftime()}} \newline % Row Count 11 (+ 1) {\emph{Format a GMT/UTC time/date according to locale settings}} \newline % Row Count 13 (+ 2) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{idate()}} \newline % Row Count 17 (+ 1) {\emph{Format a local time/date as integer}} \newline % Row Count 18 (+ 1) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{localtime()}} \newline % Row Count 22 (+ 1) {\emph{Get the local time}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{microtime()}} \newline % Row Count 27 (+ 1) {\emph{Return current Unix timestamp with microseconds}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Date/Time Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{mktime()}} \newline % Row Count 1 (+ 1) {\emph{Get Unix timestamp for a date}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{strftime()}} \newline % Row Count 6 (+ 1) {\emph{Format a local time/date according to locale settings}} \newline % Row Count 8 (+ 2) \seqsplit{http://hu1.php.net/manual/en/function.strftime.php} \newline % Row Count 10 (+ 2) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{strptime()}} \newline % Row Count 14 (+ 1) {\emph{Parse a time/date generated with strftime}} \newline % Row Count 15 (+ 1) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{strtotime()}} \newline % Row Count 19 (+ 1) {\emph{Parse about any English textual datetime description into a Unix timestamp}} \newline % Row Count 21 (+ 2) example \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{time()}} \newline % Row Count 25 (+ 1) {\emph{Return current Unix timestamp}} \newline % Row Count 26 (+ 1) example \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{timezone\_abbreviations\_list()}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Date/Time Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Alias of DateTimeZone::listAbbreviations}} \newline % Row Count 1 (+ 1) example \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{timezone\_identifiers\_list()}} \newline % Row Count 5 (+ 1) {\emph{Alias of DateTimeZone::listIdentifiers}} \newline % Row Count 6 (+ 1) example \newline % Row Count 7 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 9 (+ 2) {\bf{timezone\_location\_get()}} \newline % Row Count 10 (+ 1) {\emph{Alias of DateTimeZone::getLocation}} \newline % Row Count 11 (+ 1) example \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{timezone\_name\_from\_abbr()}} \newline % Row Count 15 (+ 1) {\emph{Returns the timezone name from abbreviation}} \newline % Row Count 16 (+ 1) example \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{timezone\_name\_get()}} \newline % Row Count 20 (+ 1) {\emph{Alias of DateTimeZone::getName}} \newline % Row Count 21 (+ 1) example \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{timezone\_offset\_get()}} \newline % Row Count 25 (+ 1) {\emph{Alias of DateTimeZone::getOffset}} \newline % Row Count 26 (+ 1) example \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{timezone\_open()}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Date/Time Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Alias of DateTimeZone::\_\_construct}} \newline % Row Count 1 (+ 1) example \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{timezone\_transitions\_get()}} \newline % Row Count 5 (+ 1) {\emph{Alias of DateTimeZone::getTransitions}} \newline % Row Count 6 (+ 1) example \newline % Row Count 7 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 9 (+ 2) {\bf{timezone\_version\_get()}} \newline % Row Count 10 (+ 1) {\emph{Gets the version of the timezonedb}} \newline % Row Count 11 (+ 1) example \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{DATE/TIME CONSTANTS}} \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{DATE\_ATOM}} \newline % Row Count 20 (+ 1) {\emph{Atom}} \newline % Row Count 21 (+ 1) example: 2005-08-15T16:13:03+0000 \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{DATE\_COOKIE}} \newline % Row Count 25 (+ 1) {\emph{HTTP Cookies}} \newline % Row Count 26 (+ 1) example: Sun, 14 Aug 2005 16:13:03 UTC \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{DATE\_ISO8601}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Date/Time Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{ISO-8601}} \newline % Row Count 1 (+ 1) example: 2005-08-14T16:13:03+0000 \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{DATE\_RFC822}} \newline % Row Count 5 (+ 1) {\emph{RFC 822}} \newline % Row Count 6 (+ 1) example: Sun, 14 Aug 2005 16:13:03 UTC \newline % Row Count 7 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 9 (+ 2) {\bf{DATE\_RFC850}} \newline % Row Count 10 (+ 1) {\emph{RFC 850}} \newline % Row Count 11 (+ 1) example: Sunday, 14-Aug-05 16:13:03 UTC \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{DATE\_RFC1036}} \newline % Row Count 15 (+ 1) {\emph{RFC 1036}} \newline % Row Count 16 (+ 1) example: Sunday, 14-Aug-05 16:13:03 UTC \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{DATE\_RFC1123}} \newline % Row Count 20 (+ 1) {\emph{RFC 1123}} \newline % Row Count 21 (+ 1) example: Sun, 14 Aug 2005 16:13:03 UTC \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{DATE\_RFC2822}} \newline % Row Count 25 (+ 1) {\emph{RFC 2822}} \newline % Row Count 26 (+ 1) Sun, 14 Aug 2005 16:13:03 +0000 \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{DATE\_RSS}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Date/Time Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{RSS}} \newline % Row Count 1 (+ 1) Sun, 14 Aug 2005 16:13:03 UTC \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{DATE\_W3C}} \newline % Row Count 5 (+ 1) {\emph{World Wide Web Consortium}} \newline % Row Count 6 (+ 1) example: 2005-08-14T16:13:03+0000% Row Count 7 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Calendar Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{cal\_days\_in\_month()}} \newline % Row Count 1 (+ 1) {\emph{Return the number of days in a month for a given year and calendar}} \newline % Row Count 3 (+ 2) example \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{cal\_from\_jd()}} \newline % Row Count 7 (+ 1) {\emph{Converts from Julian Day Count to a supported calendar}} \newline % Row Count 9 (+ 2) example \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{cal\_info()}} \newline % Row Count 13 (+ 1) {\emph{Returns information about a particular calendar}} \newline % Row Count 14 (+ 1) example \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{cal\_to\_jd()}} \newline % Row Count 18 (+ 1) {\emph{Converts from a supported calendar to Julian Day Count}} \newline % Row Count 20 (+ 2) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{easter\_date()}} \newline % Row Count 24 (+ 1) {\emph{Get Unix timestamp for midnight on Easter of a given year}} \newline % Row Count 26 (+ 2) example \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{easter\_days()}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Calendar Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Get number of days after March 21 on which Easter falls for a given year}} \newline % Row Count 2 (+ 2) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{FrenchToJD()}} \newline % Row Count 6 (+ 1) {\emph{Converts a date from the French Republican Calendar to a Julian Day Count}} \newline % Row Count 8 (+ 2) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{GregorianToJD()}} \newline % Row Count 12 (+ 1) {\emph{Converts a Gregorian date to Julian Day Count}} \newline % Row Count 13 (+ 1) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{JDDayOfWeek()}} \newline % Row Count 17 (+ 1) {\emph{Returns the day of the week}} \newline % Row Count 18 (+ 1) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{JDMonthName()}} \newline % Row Count 22 (+ 1) {\emph{Returns a month name}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{JDToFrench()}} \newline % Row Count 27 (+ 1) {\emph{Converts a Julian Day Count to the French Republican Calendar}} \newline % Row Count 29 (+ 2) example \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Calendar Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{JDToGregorian()}} \newline % Row Count 3 (+ 1) {\emph{Converts Julian Day Count to Gregorian date}} \newline % Row Count 4 (+ 1) example \newline % Row Count 5 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{jdtojewish()}} \newline % Row Count 8 (+ 1) {\emph{Converts a Julian day count to a Jewish calendar date}} \newline % Row Count 10 (+ 2) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{JDToJulian()}} \newline % Row Count 14 (+ 1) {\emph{Converts a Julian Day Count to a Julian Calendar Date}} \newline % Row Count 16 (+ 2) example \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{jdtounix()}} \newline % Row Count 20 (+ 1) {\emph{Convert Julian Day to Unix timestamp}} \newline % Row Count 21 (+ 1) example \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{JewishToJD()}} \newline % Row Count 25 (+ 1) {\emph{Converts a date in the Jewish Calendar to Julian Day Count}} \newline % Row Count 27 (+ 2) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Calendar Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{JulianToJD()}} \newline % Row Count 1 (+ 1) {\emph{Converts a Julian Calendar date to Julian Day Count}} \newline % Row Count 3 (+ 2) example \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{unixtojd()}} \newline % Row Count 7 (+ 1) *Convert Unix timestamp to Julian Day \newline % Row Count 8 (+ 1) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{CALENDAR CONSTANTS}} \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{CAL\_GREGORIAN}} \newline % Row Count 17 (+ 1) {\emph{Gregorian calendar}} \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{CAL\_JULIAN}} \newline % Row Count 21 (+ 1) {\emph{Julian calendar}} \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{CAL\_JEWISH}} \newline % Row Count 25 (+ 1) {\emph{Jewish calendar}} \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{CAL\_FRENCH}} \newline % Row Count 29 (+ 1) {\emph{French Republican calendar}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Calendar Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{CAL\_NUM\_CALS}} \newline % Row Count 3 (+ 1) {\bf{CAL\_DOW\_DAYNO}} \newline % Row Count 4 (+ 1) {\bf{CAL\_DOW\_SHORT}} \newline % Row Count 5 (+ 1) {\bf{CAL\_DOW\_LONG}} \newline % Row Count 6 (+ 1) {\bf{CAL\_MONTH\_GREGORIAN\_SHORT}} \newline % Row Count 7 (+ 1) {\bf{CAL\_MONTH\_GREGORIAN\_LONG}} \newline % Row Count 8 (+ 1) {\bf{CAL\_MONTH\_JULIAN\_SHORT}} \newline % Row Count 9 (+ 1) {\bf{CAL\_MONTH\_JULIAN\_LONG}} \newline % Row Count 10 (+ 1) {\bf{CAL\_MONTH\_JEWISH}} \newline % Row Count 11 (+ 1) {\bf{CAL\_MONTH\_FRENCH}} \newline % Row Count 12 (+ 1) {\bf{CAL\_EASTER\_DEFAULT}} \newline % Row Count 13 (+ 1) {\bf{CAL\_EASTER\_ROMAN}} \newline % Row Count 14 (+ 1) {\bf{CAL\_EASTER\_ALWAYS\_GREGORIAN}} \newline % Row Count 15 (+ 1) {\bf{CAL\_EASTER\_ALWAYS\_JULIAN}} \newline % Row Count 16 (+ 1) {\bf{CAL\_JEWISH\_ADD\_ALAFIM\_GERESH}} \newline % Row Count 17 (+ 1) {\bf{CAL\_JEWISH\_ADD\_ALAFIM}} \newline % Row Count 18 (+ 1) {\bf{CAL\_JEWISH\_ADD\_GERESHAYIM}}% Row Count 19 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP TOC III}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{PHP PCRE Functions (REGEX)} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2454}} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{PHP Mail Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2442}} \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{PHP MySQL Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2439}} \tn % Row Count 9 (+ 3) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{PHP Filesystem Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2443}} \tn % Row Count 12 (+ 3) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{PHP Directory Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2444}} \tn % Row Count 15 (+ 3) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{PHP FTP Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2445}} \tn % Row Count 18 (+ 3) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{PHP ZIP Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2446}} \tn % Row Count 21 (+ 3) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{PHP Filter Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2451}} \tn % Row Count 24 (+ 3) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{PHP Misc Functions} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}\seqsplit{http://www.cheatography.com/krabat1/cheat-sheets/php/\#title\_706\_2449}} \tn % Row Count 27 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP PCRE Functions (REGEX)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{preg\_filter()}} \newline % Row Count 1 (+ 1) {\emph{Perform a regular expression search and replace}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{preg\_grep()}} \newline % Row Count 6 (+ 1) {\emph{Return array entries that match the pattern}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{preg\_last\_error()}} \newline % Row Count 11 (+ 1) {\emph{Returns the error code of the last PCRE regex execution}} \newline % Row Count 13 (+ 2) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{preg\_match\_all()}} \newline % Row Count 17 (+ 1) {\emph{Perform a global regular expression match}} \newline % Row Count 18 (+ 1) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{preg\_match()}} \newline % Row Count 22 (+ 1) {\emph{Perform a regular expression match}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{preg\_quote()}} \newline % Row Count 27 (+ 1) {\emph{Quote regular expression characters}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP PCRE Functions (REGEX) (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{preg\_replace\_callback()}} \newline % Row Count 1 (+ 1) {\emph{Perform a regular expression search and replace using a callback}} \newline % Row Count 3 (+ 2) example \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{preg\_replace()}} \newline % Row Count 7 (+ 1) {\emph{Perform a regular expression search and replace}} \newline % Row Count 8 (+ 1) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{preg\_split()}} \newline % Row Count 12 (+ 1) *Split string by a regular expression \newline % Row Count 13 (+ 1) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{PCRE CONSTANTS}} \newline % Row Count 19 (+ 1) \seqsplit{http://hu2.php.net/manual/en/pcre.constants.php} \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-% Row Count 22 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Mail Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{ezmlm\_hash}} \newline % Row Count 1 (+ 1) {\emph{Calculate the hash value needed by EZMLM}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{mail}} \newline % Row Count 6 (+ 1) {\emph{Send mail}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-% Row Count 10 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP MySQL Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{mysql\_affected\_rows()}} \newline % Row Count 1 (+ 1) {\emph{Get number of affected rows in previous MySQL operation}} \newline % Row Count 3 (+ 2) example \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{mysql\_client\_encoding()}} \newline % Row Count 7 (+ 1) {\emph{Returns the name of the character set}} \newline % Row Count 8 (+ 1) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{mysql\_close()}} \newline % Row Count 12 (+ 1) {\emph{Close MySQL connection}} \newline % Row Count 13 (+ 1) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{mysql\_connect()}} \newline % Row Count 17 (+ 1) {\emph{Open a connection to a MySQL Server}} \newline % Row Count 18 (+ 1) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{mysql\_create\_db()}} \newline % Row Count 22 (+ 1) {\emph{Create a MySQL database}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{mysql\_data\_seek()}} \newline % Row Count 27 (+ 1) {\emph{Move internal result pointer}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP MySQL Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{mysql\_db\_name()}} \newline % Row Count 1 (+ 1) {\emph{Retrieves database name from the call to mysql\_list\_dbs}} \newline % Row Count 3 (+ 2) example \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{mysql\_db\_query()}} \newline % Row Count 7 (+ 1) {\emph{Selects a database and executes a query on it}} \newline % Row Count 8 (+ 1) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{mysql\_drop\_db()}} \newline % Row Count 12 (+ 1) {\emph{Drop (delete) a MySQL database}} \newline % Row Count 13 (+ 1) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{mysql\_errno()}} \newline % Row Count 17 (+ 1) {\emph{Returns the numerical value of the error message from previous MySQL operation}} \newline % Row Count 19 (+ 2) example \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{mysql\_error()}} \newline % Row Count 23 (+ 1) {\emph{Returns the text of the error message from previous MySQL operation}} \newline % Row Count 25 (+ 2) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{mysql\_escape\_string()}} \newline % Row Count 29 (+ 1) {\emph{Escapes a string for use in a mysql\_query}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP MySQL Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{mysql\_fetch\_array()}} \newline % Row Count 4 (+ 1) {\emph{Fetch a result row as an associative array, a numeric array, or both}} \newline % Row Count 6 (+ 2) example \newline % Row Count 7 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 9 (+ 2) {\bf{mysql\_fetch\_assoc()}} \newline % Row Count 10 (+ 1) {\emph{Fetch a result row as an associative array}} \newline % Row Count 11 (+ 1) example \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{mysql\_fetch\_field()}} \newline % Row Count 15 (+ 1) {\emph{Get column information from a result and return as an object}} \newline % Row Count 17 (+ 2) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{mysql\_fetch\_lengths()}} \newline % Row Count 21 (+ 1) {\emph{Get the length of each output in a result}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{mysql\_fetch\_object()}} \newline % Row Count 26 (+ 1) {\emph{Fetch a result row as an object}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP MySQL Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{mysql\_fetch\_row()}} \newline % Row Count 1 (+ 1) {\emph{Get a result row as an enumerated array}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{mysql\_field\_flags()}} \newline % Row Count 6 (+ 1) {\emph{Get the flags associated with the specified field in a result}} \newline % Row Count 8 (+ 2) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{mysql\_field\_len()}} \newline % Row Count 12 (+ 1) {\emph{Returns the length of the specified field}} \newline % Row Count 13 (+ 1) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{mysql\_field\_name()}} \newline % Row Count 17 (+ 1) {\emph{Get the name of the specified field in a result}} \newline % Row Count 18 (+ 1) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{mysql\_field\_seek()}} \newline % Row Count 22 (+ 1) {\emph{Set result pointer to a specified field offset}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{mysql\_field\_table()}} \newline % Row Count 27 (+ 1) {\emph{Get name of the table the specified field is in}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP MySQL Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{mysql\_field\_type()}} \newline % Row Count 1 (+ 1) {\emph{Get the type of the specified field in a result}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{mysql\_free\_result()}} \newline % Row Count 6 (+ 1) {\emph{Free result memory}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{mysql\_get\_client\_info()}} \newline % Row Count 11 (+ 1) {\emph{Get MySQL client info}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{mysql\_get\_host\_info()}} \newline % Row Count 16 (+ 1) {\emph{Get MySQL host info}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{mysql\_get\_proto\_info()}} \newline % Row Count 21 (+ 1) {\emph{Get MySQL protocol info}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{mysql\_get\_server\_info()}} \newline % Row Count 26 (+ 1) {\emph{Get MySQL server info}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP MySQL Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{mysql\_info()}} \newline % Row Count 1 (+ 1) {\emph{Get information about the most recent query}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{mysql\_insert\_id()}} \newline % Row Count 6 (+ 1) {\emph{Get the ID generated in the last query}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{mysql\_list\_dbs()}} \newline % Row Count 11 (+ 1) {\emph{List databases available on a MySQL server}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{mysql\_list\_fields()}} \newline % Row Count 16 (+ 1) {\emph{List MySQL table fields}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{mysql\_list\_processes()}} \newline % Row Count 21 (+ 1) {\emph{List MySQL processes}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{mysql\_list\_tables()}} \newline % Row Count 26 (+ 1) {\emph{List tables in a MySQL database}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP MySQL Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{mysql\_num\_fields()}} \newline % Row Count 1 (+ 1) {\emph{Get number of fields in result}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{mysql\_num\_rows()}} \newline % Row Count 6 (+ 1) {\emph{Get number of rows in result}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{mysql\_pconnect()}} \newline % Row Count 11 (+ 1) {\emph{Open a persistent connection to a MySQL server}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{mysql\_ping()}} \newline % Row Count 16 (+ 1) {\emph{Ping a server connection or reconnect if there is no connection}} \newline % Row Count 18 (+ 2) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{mysql\_query()}} \newline % Row Count 22 (+ 1) {\emph{Send a MySQL query}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{mysql\_real\_escape\_string()}} \newline % Row Count 27 (+ 1) {\emph{Escapes special characters in a string for use in an SQL statement}} \newline % Row Count 29 (+ 2) example \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP MySQL Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{mysql\_result()}} \newline % Row Count 3 (+ 1) {\emph{Get result data}} \newline % Row Count 4 (+ 1) example \newline % Row Count 5 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{mysql\_select\_db()}} \newline % Row Count 8 (+ 1) {\emph{Select a MySQL database}} \newline % Row Count 9 (+ 1) example \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{mysql\_set\_charset()}} \newline % Row Count 13 (+ 1) {\emph{Sets the client character set}} \newline % Row Count 14 (+ 1) example \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{mysql\_stat()}} \newline % Row Count 18 (+ 1) {\emph{Get current system status}} \newline % Row Count 19 (+ 1) example \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{mysql\_tablename()}} \newline % Row Count 23 (+ 1) {\emph{Get table name of field}} \newline % Row Count 24 (+ 1) example \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{mysql\_thread\_id()}} \newline % Row Count 28 (+ 1) {\emph{Return the current thread ID}} \newline % Row Count 29 (+ 1) example \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP MySQL Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{mysql\_unbuffered\_query()}} \newline % Row Count 3 (+ 1) {\emph{Send an SQL query to MySQL without fetching and buffering the result rows.}} \newline % Row Count 5 (+ 2) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{MySQL CONSTANTS}} \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{MYSQL\_CLIENT\_COMPRESS}} \newline % Row Count 14 (+ 1) {\emph{Use compression protocol}} \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{MYSQL\_CLIENT\_IGNORE\_SPACE}} \newline % Row Count 18 (+ 1) {\emph{Allow space after function names}} \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{MYSQL\_CLIENT\_INTERACTIVE}} \newline % Row Count 22 (+ 1) {\emph{Allow interactive timeout seconds of inactivity before closing the connection}} \newline % Row Count 24 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{MYSQL\_CLIENT\_SSL}} \newline % Row Count 27 (+ 1) {\emph{Use SSL encryption (only available with version 4+ of the MySQL client library)}} \newline % Row Count 29 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP MySQL Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{MYSQL\_ASSOC}} \newline % Row Count 1 (+ 1) {\emph{Columns are returned into the array with the fieldname as the array index}} \newline % Row Count 3 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{MYSQL\_BOTH}} \newline % Row Count 6 (+ 1) {\emph{Columns are returned into the array having both a numerical index and the fieldname as the array index}} \newline % Row Count 9 (+ 3) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{MYSQL\_NUM}} \newline % Row Count 12 (+ 1) {\emph{Columns are returned into the array having a numerical index (index starts at 0)}}% Row Count 14 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{basename()}} \newline % Row Count 1 (+ 1) {\emph{Returns trailing name component of path}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{chgrp()}} \newline % Row Count 6 (+ 1) {\emph{Changes file group}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{chmod()}} \newline % Row Count 11 (+ 1) {\emph{Changes file mode}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{chown()}} \newline % Row Count 16 (+ 1) {\emph{Changes file owner}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{clearstatcache()}} \newline % Row Count 21 (+ 1) {\emph{Clears file status cache}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{copy()}} \newline % Row Count 26 (+ 1) {\emph{Copies file}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{delete()}} \newline % Row Count 1 (+ 1) {\emph{See unlink or unset}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{dirname()}} \newline % Row Count 6 (+ 1) {\emph{Returns parent directory's path}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{disk\_free\_space()}} \newline % Row Count 11 (+ 1) {\emph{Returns available space on filesystem or disk partition}} \newline % Row Count 13 (+ 2) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{disk\_total\_space()}} \newline % Row Count 17 (+ 1) {\emph{Returns the total size of a filesystem or disk partition}} \newline % Row Count 19 (+ 2) example \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{diskfreespace()}} \newline % Row Count 23 (+ 1) {\emph{Alias of disk\_free\_space}} \newline % Row Count 24 (+ 1) example \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{fclose()}} \newline % Row Count 28 (+ 1) {\emph{Closes an open file pointer}} \newline % Row Count 29 (+ 1) example \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{feof()}} \newline % Row Count 3 (+ 1) {\emph{Tests for end-of-file on a file pointer}} \newline % Row Count 4 (+ 1) example \newline % Row Count 5 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{fflush()}} \newline % Row Count 8 (+ 1) {\emph{Flushes the output to a file}} \newline % Row Count 9 (+ 1) example \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{fgetc()}} \newline % Row Count 13 (+ 1) {\emph{Gets character from file pointer}} \newline % Row Count 14 (+ 1) example \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{fgetcsv()}} \newline % Row Count 18 (+ 1) {\emph{Gets line from file pointer and parse for CSV fields}} \newline % Row Count 20 (+ 2) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{fgets()}} \newline % Row Count 24 (+ 1) {\emph{Gets line from file pointer}} \newline % Row Count 25 (+ 1) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{fgetss()}} \newline % Row Count 29 (+ 1) {\emph{Gets line from file pointer and strip HTML tags}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{file\_exists()}} \newline % Row Count 4 (+ 1) {\emph{Checks whether a file or directory exists}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{file\_get\_contents()}} \newline % Row Count 9 (+ 1) {\emph{Reads entire file into a string}} \newline % Row Count 10 (+ 1) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{file\_put\_contents()}} \newline % Row Count 14 (+ 1) {\emph{Write a string to a file}} \newline % Row Count 15 (+ 1) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{file()}} \newline % Row Count 19 (+ 1) {\emph{Reads entire file into an array}} \newline % Row Count 20 (+ 1) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{fileatime()}} \newline % Row Count 24 (+ 1) {\emph{Gets last access time of file}} \newline % Row Count 25 (+ 1) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{filectime()}} \newline % Row Count 29 (+ 1) {\emph{Gets inode change time of file}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{filegroup()}} \newline % Row Count 4 (+ 1) {\emph{Gets file group}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{fileinode()}} \newline % Row Count 9 (+ 1) {\emph{Gets file inode}} \newline % Row Count 10 (+ 1) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{filemtime()}} \newline % Row Count 14 (+ 1) {\emph{Gets file modification time}} \newline % Row Count 15 (+ 1) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{fileowner()}} \newline % Row Count 19 (+ 1) {\emph{Gets file owner}} \newline % Row Count 20 (+ 1) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{fileperms()}} \newline % Row Count 24 (+ 1) {\emph{Gets file permissions}} \newline % Row Count 25 (+ 1) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{filesize()}} \newline % Row Count 29 (+ 1) {\emph{Gets file size}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{filetype()}} \newline % Row Count 4 (+ 1) {\emph{Gets file type}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{flock()}} \newline % Row Count 9 (+ 1) {\emph{Portable advisory file locking}} \newline % Row Count 10 (+ 1) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{fnmatch()}} \newline % Row Count 14 (+ 1) {\emph{Match filename against a pattern}} \newline % Row Count 15 (+ 1) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{fopen()}} \newline % Row Count 19 (+ 1) {\emph{Opens file or URL}} \newline % Row Count 20 (+ 1) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{fpassthru()}} \newline % Row Count 24 (+ 1) {\emph{Output all remaining data on a file pointer}} \newline % Row Count 25 (+ 1) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{fputcsv()}} \newline % Row Count 29 (+ 1) {\emph{Format line as CSV and write to file pointer}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{fputs()}} \newline % Row Count 4 (+ 1) {\emph{Alias of fwrite}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{fread()}} \newline % Row Count 9 (+ 1) {\emph{Binary-safe file read}} \newline % Row Count 10 (+ 1) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{fscanf()}} \newline % Row Count 14 (+ 1) {\emph{Parses input from a file according to a format}} \newline % Row Count 15 (+ 1) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{fseek()}} \newline % Row Count 19 (+ 1) {\emph{Seeks on a file pointer}} \newline % Row Count 20 (+ 1) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{fstat()}} \newline % Row Count 24 (+ 1) {\emph{Gets information about a file using an open file pointer}} \newline % Row Count 26 (+ 2) example \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{ftell()}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Returns the current position of the file read/write pointer}} \newline % Row Count 2 (+ 2) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{ftruncate()}} \newline % Row Count 6 (+ 1) {\emph{Truncates a file to a given length}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{fwrite()}} \newline % Row Count 11 (+ 1) {\emph{Binary-safe file write}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{glob()}} \newline % Row Count 16 (+ 1) {\emph{Find pathnames matching a pattern}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{is\_dir()}} \newline % Row Count 21 (+ 1) {\emph{Tells whether the filename is a directory}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{is\_executable()}} \newline % Row Count 26 (+ 1) {\emph{Tells whether the filename is executable}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{is\_file()}} \newline % Row Count 1 (+ 1) {\emph{Tells whether the filename is a regular file}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{is\_link()}} \newline % Row Count 6 (+ 1) {\emph{Tells whether the filename is a symbolic link}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{is\_readable()}} \newline % Row Count 11 (+ 1) {\emph{Tells whether a file exists and is readable}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{is\_uploaded\_file()}} \newline % Row Count 16 (+ 1) {\emph{Tells whether the file was uploaded via HTTP POST}} \newline % Row Count 18 (+ 2) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{is\_writable()}} \newline % Row Count 22 (+ 1) {\emph{Tells whether the filename is writable}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{is\_writeable()}} \newline % Row Count 27 (+ 1) {\emph{Alias of is\_writable}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{lchgrp()}} \newline % Row Count 1 (+ 1) {\emph{Changes group ownership of symlink}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{lchown()}} \newline % Row Count 6 (+ 1) {\emph{Changes user ownership of symlink}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{link()}} \newline % Row Count 11 (+ 1) {\emph{Create a hard link}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{linkinfo()}} \newline % Row Count 16 (+ 1) {\emph{Gets information about a link}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{lstat()}} \newline % Row Count 21 (+ 1) {\emph{Gives information about a file or symbolic link}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{mkdir()}} \newline % Row Count 26 (+ 1) {\emph{Makes directory}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{move\_uploaded\_file()}} \newline % Row Count 1 (+ 1) {\emph{Moves an uploaded file to a new location}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{parse\_ini\_file()}} \newline % Row Count 6 (+ 1) {\emph{Parse a configuration file}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{parse\_ini\_string()}} \newline % Row Count 11 (+ 1) {\emph{Parse a configuration string}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{pathinfo()}} \newline % Row Count 16 (+ 1) {\emph{Returns information about a file path}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{pclose()}} \newline % Row Count 21 (+ 1) {\emph{Closes process file pointer}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{popen()}} \newline % Row Count 26 (+ 1) {\emph{Opens process file pointer}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{readfile()}} \newline % Row Count 1 (+ 1) {\emph{Outputs a file}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{readlink()}} \newline % Row Count 6 (+ 1) {\emph{Returns the target of a symbolic link}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{realpath\_cache\_get()}} \newline % Row Count 11 (+ 1) {\emph{Get realpath cache entries}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{realpath\_cache\_size()}} \newline % Row Count 16 (+ 1) {\emph{Get realpath cache size}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{realpath()}} \newline % Row Count 21 (+ 1) {\emph{Returns canonicalized absolute pathname}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{rename()}} \newline % Row Count 26 (+ 1) {\emph{Renames a file or directory}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{rewind()}} \newline % Row Count 1 (+ 1) {\emph{Rewind the position of a file pointer}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{rmdir()}} \newline % Row Count 6 (+ 1) {\emph{Removes directory}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{set\_file\_buffer()}} \newline % Row Count 11 (+ 1) {\emph{Alias of stream\_set\_write\_buffer}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{stat()}} \newline % Row Count 16 (+ 1) {\emph{Gives information about a file}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{symlink()}} \newline % Row Count 21 (+ 1) {\emph{Creates a symbolic link}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{tempnam()}} \newline % Row Count 26 (+ 1) {\emph{Create file with unique file name}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{tmpfile()}} \newline % Row Count 1 (+ 1) {\emph{Creates a temporary file}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{touch()}} \newline % Row Count 6 (+ 1) {\emph{Sets access and modification time of file}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{umask()}} \newline % Row Count 11 (+ 1) {\emph{Changes the current umask}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{unlink()}} \newline % Row Count 16 (+ 1) {\emph{Deletes a file}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{FILESYSTEM CONSTANTS}} \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{SEEK\_SET}} (integer) \newline % Row Count 26 (+ 1) {\bf{SEEK\_CUR}} (integer) \newline % Row Count 27 (+ 1) {\bf{SEEK\_END}} (integer) \newline % Row Count 28 (+ 1) {\bf{LOCK\_SH}} (integer) \newline % Row Count 29 (+ 1) {\bf{LOCK\_EX}} (integer) \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{LOCK\_UN}} (integer) \newline % Row Count 1 (+ 1) {\bf{LOCK\_NB}} (integer) \newline % Row Count 2 (+ 1) {\bf{GLOB\_BRACE}} (integer) \newline % Row Count 3 (+ 1) {\bf{GLOB\_ONLYDIR}} (integer) \newline % Row Count 4 (+ 1) {\bf{GLOB\_MARK}} (integer) \newline % Row Count 5 (+ 1) {\bf{GLOB\_NOSORT}} (integer) \newline % Row Count 6 (+ 1) {\bf{GLOB\_NOCHECK}} (integer) \newline % Row Count 7 (+ 1) {\bf{GLOB\_NOESCAPE}} (integer) \newline % Row Count 8 (+ 1) {\bf{GLOB\_AVAILABLE}}\_FLAGS (integer) \newline % Row Count 9 (+ 1) {\bf{PATHINFO\_DIRNAME}} (integer) \newline % Row Count 10 (+ 1) {\bf{PATHINFO\_BASENAME}} (integer) \newline % Row Count 11 (+ 1) {\bf{PATHINFO\_EXTENSION}} (integer) \newline % Row Count 12 (+ 1) {\bf{PATHINFO\_FILENAME}} (integer) \newline % Row Count 13 (+ 1) {\emph{Since PHP 5.2.0.}} \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{FILE\_USE\_INCLUDE\_PATH}} (integer) \newline % Row Count 17 (+ 1) {\emph{Search for filename in include\_path (since PHP 5).}} \newline % Row Count 19 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{FILE\_NO\_DEFAULT\_CONTEXT}} (integer) \newline % Row Count 22 (+ 1) {\bf{FILE\_APPEND}} (integer) \newline % Row Count 23 (+ 1) {\emph{Append content to existing file.}} \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{FILE\_IGNORE\_NEW\_LINES}} (integer) \newline % Row Count 27 (+ 1) {\emph{Strip EOL characters (since PHP 5).}} \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{FILE\_SKIP\_EMPTY\_LINES}} (integer) \newline % Row Count 1 (+ 1) {\emph{Skip empty lines (since PHP 5).}} \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{FILE\_BINARY}} (integer) \newline % Row Count 5 (+ 1) {\emph{Binary mode (since PHP 5.2.7).}} \newline % Row Count 6 (+ 1) Note: \newline % Row Count 7 (+ 1) This constant has no effect, and is only available for forward compatibility. \newline % Row Count 9 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{FILE\_TEXT}} (integer) \newline % Row Count 12 (+ 1) {\emph{Text mode (since PHP 5.2.7).}} \newline % Row Count 13 (+ 1) Note: \newline % Row Count 14 (+ 1) This constant has no effect, and is only available for forward compatibility. \newline % Row Count 16 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{INI\_SCANNER}}\_NORMAL (integer) \newline % Row Count 19 (+ 1) {\emph{Normal INI scanner mode (since PHP 5.3).}} \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{INI\_SCANNER}}\_RAW (integer) \newline % Row Count 23 (+ 1) {\emph{Raw INI scanner mode (since PHP 5.3).}} \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{FNM\_NOESCAPE}} (integer) \newline % Row Count 27 (+ 1) {\emph{Disable backslash escaping.}} \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filesystem Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{FNM\_PATHNAME}} (integer) \newline % Row Count 1 (+ 1) {\emph{Slash in string only matches slash in the given pattern.}} \newline % Row Count 3 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{FNM\_PERIOD}} (integer) \newline % Row Count 6 (+ 1) {\emph{Leading period in string must be exactly matched by period in the given pattern.}} \newline % Row Count 8 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{FNM\_CASEFOLD}} (integer) \newline % Row Count 11 (+ 1) {\emph{Caseless match. Part of the GNU extension.}}% Row Count 12 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Directory Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{chdir()}} \newline % Row Count 1 (+ 1) {\emph{Change directory}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{chroot()}} \newline % Row Count 6 (+ 1) {\emph{Change the root directory}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{closedir()}} \newline % Row Count 11 (+ 1) {\emph{Close directory handle}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{dir()}} \newline % Row Count 16 (+ 1) {\emph{Return an instance of the Directory class}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{getcwd()}} \newline % Row Count 21 (+ 1) {\emph{Gets the current working directory}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{opendir()}} \newline % Row Count 26 (+ 1) {\emph{Open directory handle}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Directory Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{readdir()}} \newline % Row Count 1 (+ 1) {\emph{Read entry from directory handle}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{rewinddir()}} \newline % Row Count 6 (+ 1) {\emph{Rewind directory handle}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{scandir()}} \newline % Row Count 11 (+ 1) *List files and directories inside the specified path \newline % Row Count 13 (+ 2) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{DIRECTORY CONSTANTS}} \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{DIRECTORY\_SEPARATOR}} (string) \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{PATH\_SEPARATOR}} (string) \newline % Row Count 25 (+ 1) {\emph{Available since PHP 4.3.0. Semicolon on Windows, colon otherwise.}} \newline % Row Count 27 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{SCANDIR\_SORT\_ASCENDING}} (integer) \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Directory Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Available since PHP 5.4.0.}} \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{SCANDIR\_SORT\_DESCENDING}} (integer) \newline % Row Count 4 (+ 1) {\emph{Available since PHP 5.4.0.}}* \newline % Row Count 5 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{SCANDIR\_SORT\_NONE}} (integer) \newline % Row Count 8 (+ 1) {\emph{Available since PHP 5.4.0.}}% Row Count 9 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP FTP Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{ftp\_alloc()}} \newline % Row Count 1 (+ 1) {\emph{Allocates space for a file to be uploaded}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{ftp\_cdup()}} \newline % Row Count 6 (+ 1) {\emph{Changes to the parent directory}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{ftp\_chdir()}} \newline % Row Count 11 (+ 1) {\emph{Changes the current directory on a FTP server}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{ftp\_chmod()}} \newline % Row Count 16 (+ 1) {\emph{Set permissions on a file via FTP}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{ftp\_close()}} \newline % Row Count 21 (+ 1) {\emph{Closes an FTP connection}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{ftp\_connect()}} \newline % Row Count 26 (+ 1) {\emph{Opens an FTP connection}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP FTP Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{ftp\_delete()}} \newline % Row Count 1 (+ 1) {\emph{Deletes a file on the FTP server}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{ftp\_exec()}} \newline % Row Count 6 (+ 1) {\emph{Requests execution of a command on the FTP server}} \newline % Row Count 8 (+ 2) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{ftp\_fget()}} \newline % Row Count 12 (+ 1) {\emph{Downloads a file from the FTP server and saves to an open file}} \newline % Row Count 14 (+ 2) example \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{ftp\_fput()}} \newline % Row Count 18 (+ 1) {\emph{Uploads from an open file to the FTP server}} \newline % Row Count 19 (+ 1) example \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{ftp\_get\_option()}} \newline % Row Count 23 (+ 1) {\emph{Retrieves various runtime behaviours of the current FTP stream}} \newline % Row Count 25 (+ 2) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{ftp\_get()}} \newline % Row Count 29 (+ 1) {\emph{Downloads a file from the FTP server}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP FTP Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{ftp\_login()}} \newline % Row Count 4 (+ 1) {\emph{Logs in to an FTP connection}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{ftp\_mdtm()}} \newline % Row Count 9 (+ 1) {\emph{Returns the last modified time of the given file}} \newline % Row Count 11 (+ 2) example \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{ftp\_mkdir()}} \newline % Row Count 15 (+ 1) {\emph{Creates a directory}} \newline % Row Count 16 (+ 1) example \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{ftp\_nb\_continue()}} \newline % Row Count 20 (+ 1) {\emph{Continues retrieving/sending a file (non-blocking)}} \newline % Row Count 22 (+ 2) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{ftp\_nb\_fget()}} \newline % Row Count 26 (+ 1) {\emph{Retrieves a file from the FTP server and writes it to an open file (non-blocking)}} \newline % Row Count 28 (+ 2) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP FTP Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{ftp\_nb\_fput()}} \newline % Row Count 1 (+ 1) {\emph{Stores a file from an open file to the FTP server (non-blocking)}} \newline % Row Count 3 (+ 2) example \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{ftp\_nb\_get()}} \newline % Row Count 7 (+ 1) {\emph{Retrieves a file from the FTP server and writes it to a local file (non-blocking)}} \newline % Row Count 9 (+ 2) example \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{ftp\_nb\_put()}} \newline % Row Count 13 (+ 1) {\emph{Stores a file on the FTP server (non-blocking)}} \newline % Row Count 14 (+ 1) example \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{ftp\_nlist()}} \newline % Row Count 18 (+ 1) {\emph{Returns a list of files in the given directory}} \newline % Row Count 19 (+ 1) example \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{ftp\_pasv()}} \newline % Row Count 23 (+ 1) {\emph{Turns passive mode on or off}} \newline % Row Count 24 (+ 1) example \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{ftp\_put()}} \newline % Row Count 28 (+ 1) {\emph{Uploads a file to the FTP server}} \newline % Row Count 29 (+ 1) example \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP FTP Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{ftp\_pwd()}} \newline % Row Count 3 (+ 1) {\emph{Returns the current directory name}} \newline % Row Count 4 (+ 1) example \newline % Row Count 5 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{ftp\_quit()}} \newline % Row Count 8 (+ 1) {\emph{Alias of ftp\_close}} \newline % Row Count 9 (+ 1) example \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{ftp\_raw()}} \newline % Row Count 13 (+ 1) {\emph{Sends an arbitrary command to an FTP server}} \newline % Row Count 14 (+ 1) example \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{ftp\_rawlist()}} \newline % Row Count 18 (+ 1) {\emph{Returns a detailed list of files in the given directory}} \newline % Row Count 20 (+ 2) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{ftp\_rename()}} \newline % Row Count 24 (+ 1) {\emph{Renames a file or a directory on the FTP server}} \newline % Row Count 25 (+ 1) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{ftp\_rmdir()}} \newline % Row Count 29 (+ 1) {\emph{Removes a directory}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP FTP Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{ftp\_set\_option()}} \newline % Row Count 4 (+ 1) {\emph{Set miscellaneous runtime FTP options}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{ftp\_site()}} \newline % Row Count 9 (+ 1) {\emph{Sends a SITE command to the server}} \newline % Row Count 10 (+ 1) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{ftp\_size()}} \newline % Row Count 14 (+ 1) {\emph{Returns the size of the given file}} \newline % Row Count 15 (+ 1) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{ftp\_ssl\_connect()}} \newline % Row Count 19 (+ 1) {\emph{Opens an Secure SSL-FTP connection}} \newline % Row Count 20 (+ 1) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{ftp\_systype()}} \newline % Row Count 24 (+ 1) {\emph{Returns the system type identifier of the remote FTP server}} \newline % Row Count 26 (+ 2) example \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP FTP Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{FTP CONSTANTS}} \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{FTP\_ASCII}} (integer) \newline % Row Count 4 (+ 1) {\bf{FTP\_TEXT}} (integer) \newline % Row Count 5 (+ 1) {\bf{FTP\_BINARY}} (integer) \newline % Row Count 6 (+ 1) {\bf{FTP\_IMAGE}} (integer) \newline % Row Count 7 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 9 (+ 2) {\bf{FTP\_TIMEOUT\_SEC}} (integer) \newline % Row Count 10 (+ 1) {\emph{See ftp\_set\_option() for information.}} \newline % Row Count 11 (+ 1) The following constants were introduced in PHP 4.3.0. \newline % Row Count 13 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{FTP\_AUTOSEEK}} (integer) \newline % Row Count 16 (+ 1) {\emph{See ftp\_set\_option() for information.}} \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{FTP\_AUTORESUME}} (integer) \newline % Row Count 20 (+ 1) {\emph{Automatically determine resume position and start position for GET and PUT requests (only works if FTP\_AUTOSEEK is enabled)}} \newline % Row Count 23 (+ 3) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{FTP\_FAILED}} (integer) \newline % Row Count 26 (+ 1) {\emph{Asynchronous transfer has failed}} \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{FTP\_FINISHED}} (integer) \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP FTP Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Asynchronous transfer has finished}} \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{FTP\_MOREDATA}} (integer) \newline % Row Count 4 (+ 1) {\emph{Asynchronous transfer is still active}}% Row Count 5 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP ZIP Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{zip\_close()}} \newline % Row Count 1 (+ 1) {\emph{Close a ZIP file archive}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{zip\_entry\_close()}} \newline % Row Count 6 (+ 1) {\emph{Close a directory entry}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{zip\_entry\_compressedsize()}} \newline % Row Count 11 (+ 1) {\emph{Retrieve the compressed size of a directory entry}} \newline % Row Count 13 (+ 2) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{zip\_entry\_compressionmethod()}} \newline % Row Count 17 (+ 1) {\emph{Retrieve the compression method of a directory entry}} \newline % Row Count 19 (+ 2) example \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{zip\_entry\_filesize()}} \newline % Row Count 23 (+ 1) {\emph{Retrieve the actual file size of a directory entry}} \newline % Row Count 25 (+ 2) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{zip\_entry\_name()}} \newline % Row Count 29 (+ 1) {\emph{Retrieve the name of a directory entry}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP ZIP Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{zip\_entry\_open()}} \newline % Row Count 4 (+ 1) {\emph{Open a directory entry for reading}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{zip\_entry\_read()}} \newline % Row Count 9 (+ 1) {\emph{Read from an open directory entry}} \newline % Row Count 10 (+ 1) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{zip\_open()}} \newline % Row Count 14 (+ 1) {\emph{Open a ZIP file archive}} \newline % Row Count 15 (+ 1) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{zip\_read()}} \newline % Row Count 19 (+ 1) {\emph{Read next entry in a ZIP file archive}} \newline % Row Count 20 (+ 1) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{ZIP CONSTANTS}} \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{ZIPARCHIVE::CREATE}} (integer) \newline % Row Count 29 (+ 1) {\emph{Create the archive if it does not exist.}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP ZIP Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{ZIPARCHIVE::OVERWRITE}} (integer) \newline % Row Count 3 (+ 1) {\emph{Always start a new archive, this mode will overwrite the file if it already exists.}} \newline % Row Count 5 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{ZIPARCHIVE::EXCL}} (integer) \newline % Row Count 8 (+ 1) {\emph{Error if archive already exists.}} \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{ZIPARCHIVE::CHECKCONS}} (integer) \newline % Row Count 12 (+ 1) {\emph{Perform additional consistency checks on the archive, and error if they fail.}} \newline % Row Count 14 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{ZIPARCHIVE::FL\_NOCASE}} (integer) \newline % Row Count 17 (+ 1) {\emph{Ignore case on name lookup}} \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{ZIPARCHIVE::FL\_NODIR}} (integer) \newline % Row Count 21 (+ 1) {\emph{Ignore directory component}} \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{ZIPARCHIVE::FL\_COMPRESSED}} (integer) \newline % Row Count 25 (+ 1) {\emph{Read compressed data}} \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{ZIPARCHIVE::FL\_UNCHANGED}} (integer) \newline % Row Count 29 (+ 1) {\emph{Use original data, ignoring changes.}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP ZIP Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{ZIPARCHIVE::CM\_DEFAULT}} (integer) \newline % Row Count 3 (+ 1) {\emph{better of deflate or store.}} \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{ZIPARCHIVE::CM\_STORE}} (integer) \newline % Row Count 7 (+ 1) {\emph{stored (uncompressed).}} \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{ZIPARCHIVE::CM\_SHRINK}} (integer) \newline % Row Count 11 (+ 1) {\emph{shrunk}} \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{ZIPARCHIVE::CM\_REDUCE\_1}} (integer) \newline % Row Count 15 (+ 1) {\emph{reduced with factor 1}} \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{ZIPARCHIVE::CM\_REDUCE\_2}} (integer) \newline % Row Count 19 (+ 1) {\emph{reduced with factor 2}} \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{ZIPARCHIVE::CM\_REDUCE\_3}} (integer) \newline % Row Count 23 (+ 1) {\emph{reduced with factor 3}} \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{ZIPARCHIVE::CM\_REDUCE\_4}} (integer) \newline % Row Count 27 (+ 1) {\emph{reduced with factor 4}} \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP ZIP Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{ZIPARCHIVE::CM\_IMPLODE}} (integer) \newline % Row Count 1 (+ 1) {\emph{imploded}} \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{ZIPARCHIVE::CM\_DEFLATE}} (integer) \newline % Row Count 5 (+ 1) {\emph{deflated}} \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{ZIPARCHIVE::CM\_DEFLATE64}} (integer) \newline % Row Count 9 (+ 1) {\emph{deflate64}} \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{ZIPARCHIVE::CM\_PKWARE\_IMPLODE}} (integer) \newline % Row Count 13 (+ 1) {\emph{PKWARE imploding}} \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{ZIPARCHIVE::CM\_BZIP2}} (integer) \newline % Row Count 17 (+ 1) {\emph{BZIP2 algorithm}} \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{ZIPARCHIVE::ER\_OK}} (integer) \newline % Row Count 21 (+ 1) {\emph{No error.}} \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{ZIPARCHIVE::ER\_MULTIDISK}} (integer) \newline % Row Count 25 (+ 1) {\emph{Multi-disk zip archives not supported.}} \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{ZIPARCHIVE::ER\_RENAME}} (integer) \newline % Row Count 29 (+ 1) {\emph{Renaming temporary file failed.}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP ZIP Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{ZIPARCHIVE::ER\_CLOSE}} (integer) \newline % Row Count 3 (+ 1) {\emph{Closing zip archive failed}} \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{ZIPARCHIVE::ER\_SEEK}} (integer) \newline % Row Count 7 (+ 1) {\emph{Seek error}} \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{ZIPARCHIVE::ER\_READ}} (integer) \newline % Row Count 11 (+ 1) {\emph{Read error}} \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{ZIPARCHIVE::ER\_WRITE}} (integer) \newline % Row Count 15 (+ 1) {\emph{Write error}} \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{ZIPARCHIVE::ER\_CRC}} (integer) \newline % Row Count 19 (+ 1) {\emph{CRC error}} \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{ZIPARCHIVE::ER\_ZIPCLOSED}} (integer) \newline % Row Count 23 (+ 1) {\emph{Containing zip archive was closed}} \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{ZIPARCHIVE::ER\_NOENT}} (integer) \newline % Row Count 27 (+ 1) {\emph{No such file.}} \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP ZIP Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{ZIPARCHIVE::ER\_EXISTS}} (integer) \newline % Row Count 1 (+ 1) {\emph{File already exists}} \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{ZIPARCHIVE::ER\_OPEN}} (integer) \newline % Row Count 5 (+ 1) {\emph{Can't open file}} \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{ZIPARCHIVE::ER\_TMPOPEN}} (integer) \newline % Row Count 9 (+ 1) {\emph{Failure to create temporary file.}} \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{ZIPARCHIVE::ER\_ZLIB}} (integer) \newline % Row Count 13 (+ 1) {\emph{Zlib error}} \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{ZIPARCHIVE::ER\_MEMORY}} (integer) \newline % Row Count 17 (+ 1) {\emph{Memory allocation failure}} \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{ZIPARCHIVE::ER\_CHANGED}} (string) \newline % Row Count 21 (+ 1) Entry has been changed* \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{ZIPARCHIVE::ER\_COMPNOTSUPP}} (integer) \newline % Row Count 25 (+ 1) {\emph{Compression method not supported.}} \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{ZIPARCHIVE::ER\_EOF}} (integer) \newline % Row Count 29 (+ 1) {\emph{Premature EOF}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP ZIP Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{ZIPARCHIVE::ER\_INVAL}} (integer) \newline % Row Count 3 (+ 1) {\emph{Invalid argument}} \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{ZIPARCHIVE::ER\_NOZIP}} (integer) \newline % Row Count 7 (+ 1) {\emph{Not a zip archive}} \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{ZIPARCHIVE::ER\_INTERNAL}} (integer) \newline % Row Count 11 (+ 1) {\emph{Internal error}} \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{ZIPARCHIVE::ER\_INCONS}} (integer) \newline % Row Count 15 (+ 1) {\emph{Zip archive inconsistent}} \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{ZIPARCHIVE::ER\_REMOVE}} (integer) \newline % Row Count 19 (+ 1) {\emph{Can't remove file}} \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{ZIPARCHIVE::ER\_DELETED}} (integer) \newline % Row Count 23 (+ 1) {\emph{Entry has been deleted}}% Row Count 24 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filter Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{filter\_has\_var()}} \newline % Row Count 1 (+ 1) {\emph{Checks if variable of specified type exists}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{filter\_id()}} \newline % Row Count 6 (+ 1) {\emph{Returns the filter ID belonging to a named filter}} \newline % Row Count 8 (+ 2) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{filter\_input\_array()}} \newline % Row Count 12 (+ 1) {\emph{Gets external variables and optionally filters them}} \newline % Row Count 14 (+ 2) example \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{filter\_input()}} \newline % Row Count 18 (+ 1) {\emph{Gets a specific external variable by name and optionally filters it}} \newline % Row Count 20 (+ 2) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{filter\_list()}} \newline % Row Count 24 (+ 1) {\emph{Returns a list of all supported filters}} \newline % Row Count 25 (+ 1) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{filter\_var\_array()}} \newline % Row Count 29 (+ 1) {\emph{Gets multiple variables and optionally filters them}} \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filter Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{filter\_var()}} \newline % Row Count 4 (+ 1) {\emph{Filters a variable with a specified filter}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{FILTER CONSTANTS}} \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{INPUT\_POST}} (integer) \newline % Row Count 14 (+ 1) {\emph{POST variables.}} \newline % Row Count 15 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 17 (+ 2) {\bf{INPUT\_GET}} (integer) \newline % Row Count 18 (+ 1) {\emph{GET variables.}} \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{INPUT\_COOKIE}} (integer) \newline % Row Count 22 (+ 1) {\emph{COOKIE variables.}} \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{INPUT\_ENV}} (integer) \newline % Row Count 26 (+ 1) {\emph{ENV variables.}} \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{INPUT\_SERVER}} (integer) \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filter Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{SERVER variables.}} \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{INPUT\_SESSION}} (integer) \newline % Row Count 4 (+ 1) {\emph{SESSION variables. (not implemented yet)}} \newline % Row Count 5 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 7 (+ 2) {\bf{INPUT\_REQUEST}} (integer) \newline % Row Count 8 (+ 1) {\emph{REQUEST variables. (not implemented yet)}} \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{FILTER\_FLAG\_NONE}} (integer) \newline % Row Count 12 (+ 1) {\emph{No flags.}} \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{FILTER\_REQUIRE\_SCALAR}} (integer) \newline % Row Count 16 (+ 1) {\emph{Flag used to require scalar as input}} \newline % Row Count 17 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 19 (+ 2) {\bf{FILTER\_REQUIRE\_ARRAY}} (integer) \newline % Row Count 20 (+ 1) {\emph{Require an array as input.}} \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{FILTER\_FORCE\_ARRAY}} (integer) \newline % Row Count 24 (+ 1) {\emph{Always returns an array.}} \newline % Row Count 25 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 27 (+ 2) {\bf{FILTER\_NULL\_ON\_FAILURE}} (integer) \newline % Row Count 28 (+ 1) {\emph{Use NULL instead of FALSE on failure.}} \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filter Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{FILTER\_VALIDATE\_INT}} (integer) \newline % Row Count 1 (+ 1) {\emph{ID of "int" filter.}} \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{FILTER\_VALIDATE\_BOOLEAN}} (integer) \newline % Row Count 5 (+ 1) {\emph{ID of "boolean" filter.}} \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{FILTER\_VALIDATE\_FLOAT}} (integer) \newline % Row Count 9 (+ 1) {\emph{ID of "float" filter.}} \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{FILTER\_VALIDATE\_REGEXP}} (integer) \newline % Row Count 13 (+ 1) {\emph{ID of "validate\_regexp" filter.}} \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{FILTER\_VALIDATE\_URL}} (integer) \newline % Row Count 17 (+ 1) {\emph{ID of "validate\_url" filter.}} \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{FILTER\_VALIDATE\_EMAIL}} (integer) \newline % Row Count 21 (+ 1) {\emph{ID of "validate\_email" filter.}} \newline % Row Count 22 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 24 (+ 2) {\bf{FILTER\_VALIDATE\_IP}} (integer) \newline % Row Count 25 (+ 1) {\emph{ID of "validate\_ip" filter.}} \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{FILTER\_DEFAULT}} (integer) \newline % Row Count 29 (+ 1) {\emph{ID of default ("string") filter.}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filter Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{FILTER\_UNSAFE\_RAW}} (integer) \newline % Row Count 3 (+ 1) {\emph{ID of "unsafe\_raw" filter.}} \newline % Row Count 4 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 6 (+ 2) {\bf{FILTER\_SANITIZE\_STRING}} (integer) \newline % Row Count 7 (+ 1) {\emph{ID of "string" filter.}} \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{FILTER\_SANITIZE\_STRIPPED}} (integer) \newline % Row Count 11 (+ 1) {\emph{ID of "stripped" filter.}} \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{FILTER\_SANITIZE\_ENCODED}} (integer) \newline % Row Count 15 (+ 1) {\emph{ID of "encoded" filter.}} \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{FILTER\_SANITIZE\_SPECIAL\_CHARS}} (integer) \newline % Row Count 19 (+ 1) {\emph{ID of "special\_chars" filter.}} \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{FILTER\_SANITIZE\_EMAIL}} (integer) \newline % Row Count 23 (+ 1) {\emph{ID of "email" filter.}} \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{FILTER\_SANITIZE\_URL}} (integer) \newline % Row Count 27 (+ 1) {\emph{ID of "url" filter.}} \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filter Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{FILTER\_SANITIZE\_NUMBER\_INT}} (integer) \newline % Row Count 1 (+ 1) {\emph{ID of "number\_int" filter.}} \newline % Row Count 2 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{FILTER\_SANITIZE\_NUMBER\_FLOAT}} (integer) \newline % Row Count 5 (+ 1) {\emph{ID of "number\_float" filter.}} \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{FILTER\_SANITIZE\_MAGIC\_QUOTES}} (integer) \newline % Row Count 9 (+ 1) {\emph{ID of "magic\_quotes" filter.}} \newline % Row Count 10 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 12 (+ 2) {\bf{FILTER\_CALLBACK}} (integer) \newline % Row Count 13 (+ 1) {\emph{ID of "callback" filter.}} \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{FILTER\_FLAG\_ALLOW\_OCTAL}} (integer) \newline % Row Count 17 (+ 1) {\emph{Allow octal notation (0{[}0-7{]}+) in "int" filter.}} \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{FILTER\_FLAG\_ALLOW\_HEX}} (integer) \newline % Row Count 21 (+ 1) {\emph{Allow hex notation (0x{[}0-9a-fA-F{]}+) in "int" filter.}} \newline % Row Count 23 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{FILTER\_FLAG\_STRIP\_LOW}} (integer) \newline % Row Count 26 (+ 1) {\emph{Strip characters with ASCII value less than 32.}} \newline % Row Count 27 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 29 (+ 2) {\bf{FILTER\_FLAG\_STRIP\_HIGH}} (integer) \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filter Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\emph{Strip characters with ASCII value greater than 127.}} \newline % Row Count 2 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 4 (+ 2) {\bf{FILTER\_FLAG\_ENCODE\_LOW}} (integer) \newline % Row Count 5 (+ 1) {\emph{Encode characters with ASCII value less than 32.}} \newline % Row Count 7 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 9 (+ 2) {\bf{FILTER\_FLAG\_ENCODE\_HIGH}} (integer) \newline % Row Count 10 (+ 1) {\emph{Encode characters with ASCII value greater than 127.}} \newline % Row Count 12 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{FILTER\_FLAG\_ENCODE\_AMP}} (integer) \newline % Row Count 15 (+ 1) {\emph{Encode \&.}} \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{FILTER\_FLAG\_NO\_ENCODE\_QUOTES}} (integer) \newline % Row Count 19 (+ 1) {\emph{Don't encode ' and ".}} \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{FILTER\_FLAG\_EMPTY\_STRING\_NULL}} (integer) \newline % Row Count 23 (+ 1) {\emph{(No use for now.)}} \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{FILTER\_FLAG\_ALLOW\_FRACTION}} (integer) \newline % Row Count 27 (+ 1) {\emph{Allow fractional part in "number\_float" filter.}} \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filter Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{FILTER\_FLAG\_ALLOW\_THOUSAND}} (integer) \newline % Row Count 1 (+ 1) {\emph{Allow thousand separator (,) in "number\_float" filter.}} \newline % Row Count 3 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{FILTER\_FLAG\_ALLOW\_SCIENTIFIC}} (integer) \newline % Row Count 6 (+ 1) {\emph{Allow scientific notation (e, E) in "number\_float" filter.}} \newline % Row Count 8 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{FILTER\_FLAG\_PATH\_REQUIRED}} (integer) \newline % Row Count 11 (+ 1) {\emph{Require path in "validate\_url" filter.}} \newline % Row Count 12 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 14 (+ 2) {\bf{FILTER\_FLAG\_QUERY\_REQUIRED}} (integer) \newline % Row Count 15 (+ 1) {\emph{Require query in "validate\_url" filter.}} \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{FILTER\_FLAG\_IPV4}} (integer) \newline % Row Count 19 (+ 1) {\emph{Allow only IPv4 address in "validate\_ip" filter.}} \newline % Row Count 21 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{FILTER\_FLAG\_IPV6}} (integer) \newline % Row Count 24 (+ 1) {\emph{Allow only IPv6 address in "validate\_ip" filter.}} \newline % Row Count 26 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{FILTER\_FLAG\_NO\_RES\_RANGE}} (integer) \newline % Row Count 29 (+ 1) {\emph{Deny reserved addresses in "validate\_ip" filter.}} \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Filter Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{-{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 2 (+ 2) {\bf{FILTER\_FLAG\_NO\_PRIV\_RANGE}} (integer) \newline % Row Count 3 (+ 1) {\emph{Deny private addresses in "validate\_ip" filter.}}% Row Count 4 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Misc Functions}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{connection\_aborted}} \newline % Row Count 1 (+ 1) {\emph{Check whether client disconnected}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{connection\_status}} \newline % Row Count 6 (+ 1) {\emph{Returns connection status bitfield}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{connection\_timeout}} \newline % Row Count 11 (+ 1) {\emph{Check if the script timed out}} \newline % Row Count 12 (+ 1) example \newline % Row Count 13 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 15 (+ 2) {\bf{constant}} \newline % Row Count 16 (+ 1) {\emph{Returns the value of a constant}} \newline % Row Count 17 (+ 1) example \newline % Row Count 18 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 20 (+ 2) {\bf{define}} \newline % Row Count 21 (+ 1) {\emph{Defines a named constant}} \newline % Row Count 22 (+ 1) example \newline % Row Count 23 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 25 (+ 2) {\bf{defined}} \newline % Row Count 26 (+ 1) {\emph{Checks whether a given named constant exists}} \newline % Row Count 27 (+ 1) example \newline % Row Count 28 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 30 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Misc Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{die}} \newline % Row Count 1 (+ 1) {\emph{Equivalent to exit}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{eval}} \newline % Row Count 6 (+ 1) {\emph{Evaluate a string as PHP code}} \newline % Row Count 7 (+ 1) example \newline % Row Count 8 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{exit}} \newline % Row Count 11 (+ 1) {\emph{Output a message and terminate the current script}} \newline % Row Count 13 (+ 2) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{get\_browser}} \newline % Row Count 17 (+ 1) {\emph{Tells what the user's browser is capable of}} \newline % Row Count 18 (+ 1) example \newline % Row Count 19 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 21 (+ 2) {\bf{\_\_halt\_compiler}} \newline % Row Count 22 (+ 1) {\emph{Halts the compiler execution}} \newline % Row Count 23 (+ 1) example \newline % Row Count 24 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 26 (+ 2) {\bf{highlight\_file}} \newline % Row Count 27 (+ 1) {\emph{Syntax highlighting of a file}} \newline % Row Count 28 (+ 1) example \newline % Row Count 29 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Misc Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{highlight\_string}} \newline % Row Count 1 (+ 1) {\emph{Syntax highlighting of a string}} \newline % Row Count 2 (+ 1) example \newline % Row Count 3 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 5 (+ 2) {\bf{ignore\_user\_abort}} \newline % Row Count 6 (+ 1) {\emph{Set whether a client disconnect should abort script execution}} \newline % Row Count 8 (+ 2) example \newline % Row Count 9 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 11 (+ 2) {\bf{pack}} \newline % Row Count 12 (+ 1) {\emph{Pack data into binary string}} \newline % Row Count 13 (+ 1) example \newline % Row Count 14 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 16 (+ 2) {\bf{php\_check\_syntax}} \newline % Row Count 17 (+ 1) {\emph{Check the PHP syntax of (and execute) the specified file}} \newline % Row Count 19 (+ 2) example \newline % Row Count 20 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 22 (+ 2) {\bf{php\_strip\_whitespace}} \newline % Row Count 23 (+ 1) {\emph{Return source with stripped comments and whitespace}} \newline % Row Count 25 (+ 2) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{show\_source}} \newline % Row Count 29 (+ 1) {\emph{Alias of highlight\_file}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Misc Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{sleep}} \newline % Row Count 4 (+ 1) {\emph{Delay execution}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) {\bf{sys\_getloadavg}} \newline % Row Count 9 (+ 1) {\emph{Gets system load average}} \newline % Row Count 10 (+ 1) example \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{time\_nanosleep}} \newline % Row Count 14 (+ 1) {\emph{Delay for a number of seconds and nanoseconds}} \newline % Row Count 15 (+ 1) example \newline % Row Count 16 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 18 (+ 2) {\bf{time\_sleep\_until}} \newline % Row Count 19 (+ 1) {\emph{Make the script sleep until the specified time}} \newline % Row Count 20 (+ 1) example \newline % Row Count 21 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 23 (+ 2) {\bf{uniqid}} \newline % Row Count 24 (+ 1) {\emph{Generate a unique ID}} \newline % Row Count 25 (+ 1) example \newline % Row Count 26 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 28 (+ 2) {\bf{unpack}} \newline % Row Count 29 (+ 1) {\emph{Unpack data from binary string}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP Misc Functions (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{example \newline % Row Count 1 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 3 (+ 2) {\bf{usleep}} \newline % Row Count 4 (+ 1) {\emph{Delay execution in microseconds}} \newline % Row Count 5 (+ 1) example \newline % Row Count 6 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 8 (+ 2) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 10 (+ 2) {\bf{MISC. CONSTANTS}} \newline % Row Count 11 (+ 1) -{}-{}-{}-{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}-{}--{}- \newline % Row Count 13 (+ 2) {\bf{CONNECTION\_ABORTED}} (integer) \newline % Row Count 14 (+ 1) {\bf{CONNECTION\_NORMAL}} (integer) \newline % Row Count 15 (+ 1) {\bf{CONNECTION\_TIMEOUT}} (integer) \newline % Row Count 16 (+ 1) {\bf{\_\_COMPILER\_HALT\_OFFSET\_\_}} (integer) \newline % Row Count 17 (+ 1) {\emph{Added in PHP 5.1.}}% Row Count 18 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}