\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{grbavica} \pdfinfo{ /Title (stringovi.pdf) /Creator (Cheatography) /Author (grbavica) /Subject (Stringovi 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}{17629C} \definecolor{LightBackground}{HTML}{F0F5F8} \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{Stringovi Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{grbavica} via \textcolor{DarkBackground}{\uline{cheatography.com/70705/cs/17932/}}} \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}grbavica \\ \uline{cheatography.com/grbavica} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 18th November, 2018.\\ 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{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{Enkodiranje}} \tn \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{Interna reprezentacija u PHP uvijek je u UTF-8 \newline % Row Count 1 (+ 1) {\emph{php.ini}} \newline % Row Count 2 (+ 1) {\bf{default\_charset}} = "utf-8"; \newline % Row Count 3 (+ 1) {\bf{mb\_check\_encoding}} (\$string, \$encoding) - provjerava da li je string validan za specifično enkodiranje \newline % Row Count 6 (+ 3) {\bf{mb\_internal\_encoding ("UTF-8")}} - postavlja interno enkodiranje u UTF-8 \newline % Row Count 8 (+ 2) {\bf{mb\_strlen}}() - funkcija koja vraća broj \newline % Row Count 9 (+ 1) {\bf{mysqli\_set\_charset}}(\$con,"utf8") - u Mysql postavlja karakter set za enkodiranje u UTF 8% Row Count 11 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{PHP osnovne funkcije}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{int {\bf{strpos}} ( string \$haystack , mixed \$needle {[}, int \$offset = 0 {]} ) - Pronalazi prvo pojavljivanje dijela stringa u stringu} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{int {\bf{strrpos}} ( string \$haystack , mixed \$needle {[}, int \$offset = 0 {]} ) - Pronalazi zadnje pojavljivanje dijela stringa} \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{int {\bf{stripos}} ( string \$haystack , mixed \$needle {[}, int \$offset = 0 {]} ) - Traži prvo pojavljivanje dijela stringa bez obzira na velika i mala slova u stringu} \tn % Row Count 10 (+ 4) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{int {\bf{strripos}} ( string \$haystack , mixed \$needle {[}, int \$offset = 0 {]} ) - Pronalazi zadnje pojavljivanje dijela stringa bez obzira na velika i mala slova u stringu} \tn % Row Count 14 (+ 4) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{string {\bf{strstr}} ( string \$haystack , mixed \$needle {[}, bool \$before\_needle = FALSE {]} ) - Vraća prvo pojavljivanje stringa u stringu} \tn % Row Count 17 (+ 3) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{string {\bf{stristr}} ( string \$haystack , mixed \$needle {[}, bool \$before\_needle = FALSE {]} ) - strstr funkcija neosjetljvia na velika i mala slova} \tn % Row Count 20 (+ 3) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{mixed {\bf{str\_replace}} ( mixed \$search , mixed \$replace , mixed \$subject {[}, int \&\$count {]} ) - Mijenja sva pojavljivanja traženog stringa sa zamjenskim stringom} \tn % Row Count 24 (+ 4) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{mixed {\bf{str\_ireplace}} ( mixed \$search , mixed \$replace , mixed \$subject {[}, int \&\$count {]} ) - Mijenja sva pojavljivanja traženog stringa sa zamjenskim stringom ( neosjetljiva na velika i mala slova)} \tn % Row Count 28 (+ 4) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{{\bf{strchr}}() - drugo ime za {\bf{strstr}}()} \tn % Row Count 29 (+ 1) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{string {\bf{strrchr}} ( string \$haystack , mixed \$needle ) - Vraća zadnje pojavljivanje karaktera u stringu} \tn % Row Count 32 (+ 3) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{PHP osnovne funkcije (cont)}} \tn % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{int {\bf{strcmp}} ( string \$str1 , string \$str2 ) - binary safe komparacija} \tn % Row Count 2 (+ 2) % Row 11 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{int {\bf{strcasecmp}} ( string \$str1 , string \$str2 ) - binary safe komparacija neosjetljvia na velika i mala slova} \tn % Row Count 5 (+ 3) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{int {\bf{strncmp}} ( string \$str1 , string \$str2 , int \$len ) - binary safe komparacija određenih karaktera u stringu} \tn % Row Count 8 (+ 3) % Row 13 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{int {\bf{strncasecmp}} ( string \$str1 , string \$str2 , int \$len ) - binary safe komparacija u stringu određenih broj karaktera neosjetljivo na velika i mala slova} \tn % Row Count 12 (+ 4) % Row 14 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{int {\bf{strnatcmp}} ( string \$str1 , string \$str2 ) - komparacija stringova algoritmom "natural order"} \tn % Row Count 15 (+ 3) % Row 15 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{int {\bf{strnatcasecmp}} ( string \$str1 , string \$str2 ) - neosjetljiva na velika i mala slova komparacija algoritmom "natural order"} \tn % Row Count 18 (+ 3) % Row 16 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{string {\bf{substr}} ( string \$string , int \$start {[}, int \$length {]} ) - Izvlači i vraća dio stringa} \tn % Row Count 20 (+ 2) % Row 17 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{nt {\bf{substr\_count}} ( string \$haystack , string \$needle {[}, int \$offset = 0 {[}, int \$length {]}{]} ) - računa koliko puta se dio stringa nalazi u stringu} \tn % Row Count 23 (+ 3) % Row 18 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{int {\bf{substr\_compare}} ( string \$main\_str , string \$str , int \$offset {[}, int \$length {[}, bool \$case\_insensitivity = FALSE {]}{]} ) - Binary safe komparacija 2 stringa} \tn % Row Count 27 (+ 4) % Row 19 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{mixed {\bf{substr\_replace}} ( mixed \$string , mixed \$replacement , mixed \$start {[}, mixed \$length {]} ) - Mijenja tekst u stringu} \tn % Row Count 30 (+ 3) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{PHP osnovne funkcije (cont)}} \tn % Row 20 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{mixed {\bf{count\_chars}} ( string \$string {[}, int \$mode = 0 {]} ) - Vraća informacije o karakterima korištenim u stringu} \tn % Row Count 3 (+ 3) % Row 21 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{int {\bf{similar\_text}} ( string \$first , string \$second {[}, float \&\$percent {]} ) - računa sličnost stringova} \tn % Row Count 6 (+ 3) % Row 22 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{int {\bf{strcspn}} ( string \$subject , string \$mask {[}, int \$start {[}, int \$length {]}{]} ) - traži dužinu inicijalnog segmenta, ne podudarajaće maske} \tn % Row Count 9 (+ 3) % Row 23 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{string {\bf{strpbrk}} ( string \$haystack , string \$char\_list ) - traži string za bilo koji set karaktera} \tn % Row Count 12 (+ 3) % Row 24 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{string {\bf{strrev}} ( string \$string ) - izvrće naopako string} \tn % Row Count 14 (+ 2) % Row 25 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{mixed {\bf{str\_word\_count}} ( string \$string {[}, int \$format = 0 {[}, string \$charlist {]}{]} ) - broji riječi u stringu} \tn % Row Count 17 (+ 3) % Row 26 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{string {\bf{strtr}} ( string \$str , string \$from , string \$to ) - prevodi karaktere ili zamjenjuje ih} \tn % Row Count 19 (+ 2) % Row 27 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{int {\bf{strlen}} ( string \$string ) - vraća dužinu stringa} \tn % Row Count 21 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{Bitne funkcije za rad sa stringovima}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{string {\bf{implode}} ( string \$glue , array \$pieces ) - Razbija niz u stringova} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{{\bf{join}}() - drugo ime za implode} \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{array {\bf{explode}} ( string \$delimiter , string \$string {[}, int \$limit = PHP\_INT\_MAX {]} ) - Razbija string stringom} \tn % Row Count 6 (+ 3) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{string {\bf{nl2br}} ( string \$string {[}, bool \$is\_xhtml = TRUE {]} ) - Ubacuje HTML break line prije svih novih linija u stringu} \tn % Row Count 9 (+ 3) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{17.67cm}}{string {\bf{chr}} ( int \$bytevalue ) - Generiše singl bajt iz broja (} \tn % Row Count 11 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{int {\bf{ord}} ( string \$string ) - Konvertuje prvi bajt iz stringa u vrijednost između 0 i 255} \tn % Row Count 13 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{Formatiranje brojeva}} \tn \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{1. string {\bf{number\_format}} ( float \$number , int \$decimals = 0 , string \$dec\_point = "." , string \$thousands\_sep = "," ) - formatira broj sa hiljadama \newline % Row Count 4 (+ 4) 2. string {\bf{number\_format}} ( float \$number {[}, int \$decimals = 0 {]} ) - formatira broj sa hiljadama \newline % Row Count 6 (+ 2) 3.string {\bf{money\_format}} ( string \$format , float \$number ) - formatira broj kao valutu% Row Count 8 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{Formatiranje stringova}} \tn \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{1, int {\bf{printf}} ( string \$format {[}, mixed \$args {[}, mixed \$... {]}{]} ) - ispisuje formatiran string \newline % Row Count 2 (+ 2) 2. int {\bf{vprintf}} ( string \$format , array \$args ) - ispisuje formatiran string ( drugi argument je niz) \newline % Row Count 5 (+ 3) 3. string {\bf{sprintf}} ( string \$format {[}, mixed \$args {[}, mixed \$... {]}{]} ) - vraća formatiran string \newline % Row Count 7 (+ 2) 4. string {\bf{vsprintf}} ( string \$format , array \$args ) - vraća formatiran string ( drugi argument je niz) \newline % Row Count 10 (+ 3) 5. int {\bf{fprintf}} ( resource \$handle , string \$format {[}, mixed \$args {[}, mixed \$... {]}{]} ) - upisuje formatiran string u datoteku \newline % Row Count 13 (+ 3) 6. int {\bf{vfprintf}} ( resource \$handle , string \$format , array \$args ) - upisuje formatiran string u datoteku \newline % Row Count 16 (+ 3) Paramteri \newline % Row Count 17 (+ 1) Svaka specifikacija počinje sa znakom procenta (\%), za kojim slijedi jedan ili više elemenata \newline % Row Count 19 (+ 2) 1. Opcioni znak koji forsira zna (- ili +) na brojevima. Defaultna vrijednost je, samo se predznak koristi ukoliko su negativni brojevi. \newline % Row Count 22 (+ 3) 2. Opcioni padding koji govori koji karakter će biti iskorišten za padding. Ovo može biti spejs karakter ili 0. Defaultna vrijednost je spejs. Alternativni padding, može biti zadan stavljanjem prefiksa sa jednostrukim navodnicima. \newline % Row Count 27 (+ 5) 3. Opcioni argument alignment govori da li rezultat treba biti lijevo poravnati ili desno. Defaultno je desno. \newline % Row Count 30 (+ 3) } \tn \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{Formatiranje stringova (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{4. Opcioni broj je širina koja govori koliko karaktera minimalno će uraditi ova konverzija. \newline % Row Count 2 (+ 2) 5. Opcioni specifikator koji slijedi decimala, govori koliko mjesta će biti prikazano prilikom prikazivanja sa brojevima sa pokretnim zarezom. \newline % Row Count 5 (+ 3) 6. A tip specifikator govori koji tip argumnta podataka bi trebao biti tretiran. Mogući tipovi: \newline % Row Count 7 (+ 2) \% - a literal percent character. No argument is required. \newline % Row Count 9 (+ 2) b - the argument is treated as an integer and presented as a binary number. \newline % Row Count 11 (+ 2) c - the argument is treated as an integer and presented as the character with that ASCII value. \newline % Row Count 13 (+ 2) d - the argument is treated as an integer and presented as a (signed) decimal number. \newline % Row Count 15 (+ 2) e - the argument is treated as scientific notation (e.g. 1.2e+2). The precision specifier stands for the number of digits after the decimal point since PHP 5.2.1. In earlier versions, it was taken as number of significant digits (one less). \newline % Row Count 20 (+ 5) E - like \%e but uses uppercase letter (e.g. 1.2E+2). \newline % Row Count 22 (+ 2) f - the argument is treated as a float and presented as a floating-point number (locale aware). \newline % Row Count 24 (+ 2) F - the argument is treated as a float and presented as a floating-point number (non-locale aware). Available since PHP 5.0.3. \newline % Row Count 27 (+ 3) g - shorter of \%e and \%f. \newline % Row Count 28 (+ 1) G - shorter of \%E and \%f. \newline % Row Count 29 (+ 1) o - the argument is treated as an integer and presented as an octal number. \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{Formatiranje stringova (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{ s - the argument is treated as and presented as a string. \newline % Row Count 2 (+ 2) u - the argument is treated as an integer and presented as an unsigned decimal number. \newline % Row Count 4 (+ 2) x - the argument is treated as an integer and presented as a hexadecimal number (with lowercase letters). \newline % Row Count 7 (+ 3) X - the argument is treated as an integer and presented as a hexadecimal number (with uppercase letters). \newline % Row Count 10 (+ 3) mixed {\bf{fscanf}} ( resource \$handle , string \$format {[}, mixed \&\$... {]} ) - parsira input iz datoteke prema formatu \newline % Row Count 13 (+ 3) mixed {\bf{sscanf}} ( string \$str , string \$format {[}, mixed \&\$... {]} ) - Parsira input iz stringa prema formatu% Row Count 16 (+ 3) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{Regularni izrazi}} \tn \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{int {\bf{preg\_match}} ( string \$pattern , string \$subject {[}, array \&\$matches {[}, int \$flags = 0 {[}, int \$offset = 0 {]}{]}{]} ) - radi podudaranje ( prestaje tražiti nakon prvog pronalaska) \newline % Row Count 4 (+ 4) int {\bf{preg\_match\_all}} ( string \$pattern , string \$subject {[}, array \&\$matches {[}, int \$flags = PREG\_PATTERN\_ORDER {[}, int \$offset = 0 {]}{]}{]} ) - ( ne prestaje tražiti nakon prvog pronalaska, nego do kraja) \newline % Row Count 9 (+ 5) mixed {\bf{preg\_replace}} ( mixed \$pattern , mixed \$replacement , mixed \$subject {[}, int \$limit = -1 {[}, int \&\$count {]}{]} ) - traži i mijenja \newline % Row Count 12 (+ 3) \{\{nl\}\} \newline % Row Count 13 (+ 1) mixed{\bf{ preg\_filter}} ( mixed \$pattern , mixed \$replacement , mixed \$subject {[}, int \$limit = -1 {[}, int \&\$count {]}{]} - identična funkcija kao preg\_match, samo što vraća dio gdje su nadjeni \newline % Row Count 17 (+ 4) array {\bf{preg\_grep}} ( string \$pattern , array \$input {[}, int \$flags = 0 {]} ) - vraća niz upisa koji odgovaraju izrazu \newline % Row Count 20 (+ 3) int preg\_last\_error ( void ) - Vraća error kod zadnje regex egzekucije \newline % Row Count 22 (+ 2) mixed {\bf{preg\_replace\_callback}} ( mixed \$pattern , callable \$callback , mixed \$subject {[}, int \$limit = -1 {[}, int \&\$count {]}{]} ) -pretražuje i mijenja string ( pomoću pozadinske funkcije) \newline % Row Count 26 (+ 4) mixed {\bf{preg\_replace\_callback\_array}} ( array \seqsplit{\$patterns\_and\_callbacks} , mixed \$subject {[}, int \$limit = -1 {[}, int \&\$count {]}{]} ) - traži i mijenja string ( pomoću niza pozadinske funkcije) \newline % Row Count 30 (+ 4) } \tn \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{17.67cm}}{\bf\textcolor{white}{Regularni izrazi (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{17.67cm}}{array {\bf{preg\_split}} ( string \$pattern , string \$subject {[}, int \$limit = -1 {[}, int \$flags = 0 {]}{]} ) - razbija string \newline % Row Count 3 (+ 3) string {\bf{preg\_quote}} ( string \$str {[}, string \$delimiter = NULL {]} ) - quota string% Row Count 5 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \end{document}