All tests

ArrayAssociativeTest

Generate an associative array from variables

ArrayKeyExistsTest

Check if element exists into array with array_key_exists

ArrayMapClosureDefinedTest

Update array values using array_map and previous defined closure function

ArrayMapClosureTest

Update array values using array_map and closure function

ArrayUniqueTest

Create an array without duplicates from a range using array_unique

ArrayWalkClosureDefinedTest

Update array values using array_walk and previous defined closure function

ArrayWalkClosureTest

Update array values using array_walk and closure function

AssignDoubleQuoteCodeBracketsTest

Assign message to variable with double quotes and code into quotes with brackets

AssignDoubleQuoteCodeTest

Assign message to variable with double quotes and code into quotes

AssignDoubleQuoteTest

Assign message to variable with double quotes

AssignSingleQuoteConcatCodeTest

Assign message to variable with single quotes and code concatenated with quotes

AssignSingleQuoteTest

Assign message to variable with single quotes

AssignThreeDoubleQuoteCodeBracketsTest

Assign message to variable with double quotes and code with three variables into quotes with brackets

AssignThreeDoubleQuoteCodeTest

Assign message to variable with double quotes and code with three variables into quotes

AssignThreeSingleQuoteConcatCodeTest

Assign message to variable with single quotes and code concatenated with three variables

CamelCasePregReplaceTest

Create a camelCase string using preg_replace_callback

CamelCaseStringsTest

Create a camelCase string using lcfirst/str_replace/uc_words

ClassCallClassNameTest

Call a static class method using class name

ClassCallMagicTest

Call a non existing class method and catch it with magic method __call

ClassCallMethodTest

Call a regular class method using this

ClassCallSelfTest

Call a static class method using self

ClassCallStaticTest

Call a static class method using static

ClassVarMagicGetTest

Call a non existing class variable and catch it with magic method __get

ClassVarMagicSetTest

Set a non existing class variable and catch it with magic method __set

CompactTest

Generate an associative array with compact

DateStrtotimeTest

Generate a date from date string with strtotime and date

EchoDoubleQuoteCodeTest

Echo message with double quotes and code into quotes

EchoDoubleQuoteTest

Echo message with double quotes

EchoSingleQuoteCodeConcatCommaTest

Echo message with single quotes and code concatenated with quotes and comma

EchoSingleQuoteCodeConcatTest

Echo message with single quotes and code concatenated with quotes

EchoSingleQuoteTest

Echo message with single quotes

EmptyTest

Check if element exists into array with empty

ExplodeExtensionTest

Obtain file extension with explode

ExplodeLargeTest

Split a large string with explode and get the first element

ExplodeLimitLargeTest

Split a large string with explode (limit) and get the first element

ExplodeLimitTest

Split a string with explode (limit) and get the first element

ExplodeTest

Split a string with explode and get the first element

FileExistsNonExistingTest

Check if file (non existing) exists with file_exists

FileExistsTest

Check if file (existing) exists with file_exists

FillArrayFixedTest

Fill an fixed array with for

FillArrayMergeTest

Fill an array with array_merge

FillArrayPushTest

Fill an array with array_push

FillArrayTest

Fill an array with for

FillObjectTest

Fill an object with for

ForeachUniqueEmptyTest

Create an array without duplicates from a range using foreach, checking existing with empty and keys as values

ForeachUniqueInArrayStrictTest

Create an array without duplicates from a range using foreach, checking existing with in_array (strict) and keys as values

ForeachUniqueInArrayTest

Create an array without duplicates from a range using foreach, checking existing with in_array and keys as values

ForeachUniqueIssetTest

Create an array without duplicates from a range using foreach, checking existing with isset and keys as values

ForeachUniqueTest

Create an array without duplicates from a range using foreach and keys as values

IfBracketsTest

Create a if with brackets

IfElseifElseTest

Create a multiple if/elseif/else conditions

IfJoinedTest

Create a joined if

IfNestedTest

Create a double if (nested)

IfWithoutBracketsTest

Create a if without brackets

InArraySmallStrictTest

Check if value is in array (strict) with few elements

InArraySmallTest

Check if value is in array with few elements

InArrayStrictTest

Check if value is in array (strict)

InArrayTest

Check if value is in array

IncludeOnceTest

Include file with include_once

IncludeTest

Include file with include

IncrementAfterTest

Increment after var ($i++)

IncrementBeforeTest

Increment before var (++$i)

IncrementLocalToObjectTest

Increment a local variable and asing value to object at end

IncrementObjectTest

Increment an object variable

IsFileNonExistingTest

Check if file (non existing) exists with is_file

IsFileTest

Check if file (existing) exists with is_file

IssetMultipleJoinedTest

Check if multiple elements exists into array with multiple isset

IssetMultipleTest

Check if multiple elements exists into array with isset

IssetTest

Check if element exists into array with isset

JsonDecodeArrayTest

Decode a string as array using json_decode

JsonDecodeObjectTest

Decode a string as object using json_decode

JsonEncodeArrayTest

Encode an array as string using json_encode

JsonEncodeObjectTest

Encode an object as string using json_encode

LoopForCountTest

Create loop with for and count values in each iteration

LoopForTest

Create loop with for

LoopForeachKeyValueTest

Create loop with foreach (key and value)

LoopForeachValueTest

Create loop with foreach (only value)

LoopWhileTest

Create loop with while

NotEmptyTest

Check if element not exists into array with empty

NotIssetTest

Check if element not exists into array with isset

PathinfoExtensionTest

Obtain filename extension with pathinfo

PregReplaceExpressionTest

Replace a text with preg_replace and a regular expression

PregReplaceTest

Replace a text with preg_replace

PregSplitLargeTest

Split a large string with preg_split and get the first element

PregSplitTest

Split a string with preg_split and get the first element

PrintDoubleQuoteCodeTest

Print message with double quotes and code into quotes

PrintDoubleQuoteTest

Print message with double quotes

PrintSingleQuoteCodeConcatTest

Print message with single quotes and code concatenated with quotes

PrintSingleQuoteTest

Print message with single quotes

RequireOnceTest

Include file with require_once

RequireTest

Include file with require

SerializeArrayTest

Encode an array as string using serialize

SerializeObjectTest

Encode an object as string using serialize

SprintfTest

Assign message to variable with one parameter using sprintf

SprintfThreeTest

Assign message to variable with three parameters using sprintf

StrIPosTest

Find a string into a text using stripos (case insensitive)

StrIReplaceTest

Replace a text with str_ireplace (case insensitive)

StrIStrTest

Find a string into a text using stristr (case insensitive)

StrPosTest

Find a string into a text using strpos

StrReplaceMultipleTest

Replace multiples strings in a text with str_replace

StrReplaceTest

Replace a text with str_replace

StrStrTest

Find a string into a text using strstr

StrtrTest

Replace a text with strtr

SubstrExtensionTest

Obtain filename extension with substr/strrchr

SumForTest

Create loop with for and sum value

SumForeachArrayKeysTest

Create loop with foreach array_keys and sum value

SumForeachReferenceTest

Create loop with foreach and value as reference and sum value

SumForeachTest

Create loop with foreach (key/value) and sum value

SwitchTest

Create a switch with multiple case conditions

UnserializeArrayTest

Decode a string as array using unserialize

UnserializeObjectTest

Decode a string as object using unserialize