Parameters

string
$haystack

The string from which to get the first occurrence of $needle.

string
$needle

The string to find in $haystack.

boolean
$partoptionalfalse

Determines which portion of $haystack this function returns.
If set to true, it returns all of $haystack from the beginning to the first occurrence of $needle.
If set to false, it returns all of $haystack from the first occurrence of $needle to the end,
Default value is false.

Returns

integer|booleanThe portion of $haystack, or false if $needle is not found.

Parameters

string
$haystack

The string from which to get the last occurrence of $needle.

string
$needle

The string to find in $haystack.

boolean
$partoptionalfalse

Determines which portion of $haystack this function returns.
If set to true, it returns all of $haystack from the beginning to the last occurrence of $needle.
If set to false, it returns all of $haystack from the last occurrence of $needle to the end,
Default value is false.

Returns

string|booleanThe portion of $haystack. or false if $needle is not found.

Finds the last occurrence of a character in a string within another, case insensitive.

Parameters

string
$haystack

The string from which to get the last occurrence of $needle.

string
$needle

The string to find in $haystack.

boolean
$partoptionalfalse

Determines which portion of $haystack this function returns.
If set to true, it returns all of $haystack from the beginning to the last occurrence of $needle.
If set to false, it returns all of $haystack from the last occurrence of $needle to the end,
Default value is false.

Returns

string|booleanThe portion of $haystack. or false if $needle is not found.

Parameters

string
$haystack

The string from which to get the first occurrence of $needle.

string
$needle

The string to find in $haystack

boolean
$partoptionalfalse

Determines which portion of $haystack this function returns.
If set to true, it returns all of $haystack from the beginning to the first occurrence of $needle.
If set to false, it returns all of $haystack from the first occurrence of $needle to the end,
Default value is FALSE.

Returns

string|booleanThe portion of $haystack, or true if $needle is not found.

Parameters

Returns

A hack to support __construct() on PHP 4
Hint: descendant classes have no PHP4 class_name() constructors,
so this constructor gets called first and calls the top-layer __construct()
which (if present) should call parent::__construct()

Parameters

Checks for a persistent class file, if found file is opened and true returned
If file is not found a file is created and false returned
If used in other locations of the model you should choose a unique name for the persistent file
There are many uses for this method, see manual for examples

Returns

Calls a controller's method from any location. Can be used to connect controllers together
or tie plugins into a main application. requestAction can be used to return rendered views
or fetch the return value from controller actions.

Parameters

mixed
$url

String or array-based url.

array
$extraoptionalarray()

if array includes the key "return" it sets the AutoRender to true.

Returns

mixed

Boolean true or false on success/failure, or contents
of rendered action if 'return' is set in $extra.