CI_Session::flashdata()

flashdata([$key = NULL]) Parameters: $key (mixed) – Flashdata item key or NULL Returns: Value of the specified item key, or an array of all flashdata Return type: mixed Gets the value for a specific $_SESSION item that has been marked as “flashdata”, or an array of all “flashdata” items if no key was specified. Note This is a legacy method kept only for backwards compatibility with older applications. You should directly access $_SESSION instead.

CI_DB_driver::insert_string()

insert_string($table, $data) Parameters: $table (string) – The target table $data (array) – An associative array of key/value pairs Returns: The SQL INSERT statement, as a string Return type: string Generate an INSERT statement string.

CI_DB_query_builder::select_sum()

select_sum([$select = ''[, $alias = '']]) Parameters: $select (string) – Field to compute the sum of $alias (string) – Alias for the resulting value name Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Adds a SELECT SUM(field) clause to a query.

CI_DB_driver::call_function()

call_function($function) Parameters: $function (string) – Function name Returns: The function result Return type: string Runs a native PHP function , using a platform agnostic wrapper.

CI_DB_driver::field_data()

field_data($table) Parameters: $table (string) – The table name Returns: Array of field data items or FALSE on failure Return type: array Gets a list containing field data about a table.

byte_format()

byte_format($num[, $precision = 1]) Parameters: $num (mixed) – Number of bytes $precision (int) – Floating point precision Returns: Formatted data size string Return type: string Formats numbers as bytes, based on size, and adds the appropriate suffix. Examples: echo byte_format(456); // Returns 456 Bytes echo byte_format(4567); // Returns 4.5 KB echo byte_format(45678); // Returns 44.6 KB echo byte_format(456789); // Returns 447.8 KB echo byte_format(3456789); // Returns 3.3 MB ec

CI_User_agent::is_browser()

is_browser([$key = NULL]) Parameters: $key (string) – Optional browser name Returns: TRUE if the user agent is a (specified) browser, FALSE if not Return type: bool Returns TRUE/FALSE (boolean) if the user agent is a known web browser. if ($this->agent->is_browser('Safari')) { echo 'You are using Safari.'; } elseif ($this->agent->is_browser()) { echo 'You are using a browser.'; } Note The string “Safari” in this example is an array key in the list of br

CI_Loader::get_var()

get_var($key) Parameters: $key (string) – Variable name key Returns: Value if key is found, NULL if not Return type: mixed This method checks the associative array of variables available to your views. This is useful if for any reason a var is set in a library or another controller method using $this->load->vars().

CI_Unit_test::result()

result([$results = array()]) Parameters: $results (array) – Tests results list Returns: Array of raw result data Return type: array Returns raw tests results data.

mb_strpos()

mb_strpos($haystack, $needle[, $offset = 0[, $encoding = NULL]]) Parameters: $haystack (string) – String to search in $needle (string) – Part of string to search for $offset (int) – Search offset $encoding (string) – Character set Returns: Numeric character position of where $needle was found or FALSE if not found Return type: mixed For more information, please refer to the PHP manual for mb_strpos().