hash_pbkdf2()

hash_pbkdf2($algo, $password, $salt, $iterations[, $length = 0[, $raw_output = FALSE]]) Parameters: $algo (string) – Hashing algorithm $password (string) – Password $salt (string) – Hash salt $iterations (int) – Number of iterations to perform during derivation $length (int) – Output string length $raw_output (bool) – Whether to return raw binary data Returns: Password-derived key or FALSE on failure Return type: string For more information, please refer to the PHP manual for h

CI_URI::segment_array()

segment_array() Returns: URI segments array Return type: array Returns an array containing the URI segments. For example: $segs = $this->uri->segment_array(); foreach ($segs as $segment) { echo $segment; echo '<br />'; }

timezones()

timezones([$tz = '']) Parameters: $tz (string) – A numeric timezone Returns: Hour difference from UTC Return type: int Takes a timezone reference (for a list of valid timezones, see the “Timezone Reference” below) and returns the number of hours offset from UTC. Example: echo timezones('UM5'); This function is useful when used with timezone_menu().

CI_Lang::line()

line($line[, $log_errors = TRUE]) Parameters: $line (string) – Language line key name $log_errors (bool) – Whether to log an error if the line isn’t found Returns: Language line string or FALSE on failure Return type: string Fetches a single translation line from the already loaded language files, based on the line’s name.

CI_URI::segment()

segment($n[, $no_result = NULL]) Parameters: $n (int) – Segment index number $no_result (mixed) – What to return if the searched segment is not found Returns: Segment value or $no_result value if not found Return type: mixed Permits you to retrieve a specific segment. Where n is the segment number you wish to retrieve. Segments are numbered from left to right. For example, if your full URL is this: http://example.com/index.php/news/local/metro/crime_is_up The segment numbers would

CI_User_agent::is_robot()

is_robot([$key = NULL]) Parameters: $key (string) – Optional robot name Returns: TRUE if the user agent is a (specified) robot, FALSE if not Return type: bool Returns TRUE/FALSE (boolean) if the user agent is a known robot. Note The user agent library only contains the most common robot definitions. It is not a complete list of bots. There are hundreds of them so searching for each one would not be very efficient. If you find that some bots that commonly visit your site are missing

validation_errors()

validation_errors([$prefix = ''[, $suffix = '']]) Parameters: $prefix (string) – Error opening tag $suffix (string) – Error closing tag Returns: HTML-formatted form validation error message(s) Return type: string Similarly to the form_error() function, returns all validation error messages produced by the Form Validation Library, with optional opening and closing tags around each of the messages. Example: echo validation_errors('<span class="error">', '</span>'); /*

highlight_phrase()

highlight_phrase($str, $phrase[, $tag_open = ''[, $tag_close = '']]) Parameters: $str (string) – Input string $phrase (string) – Phrase to highlight $tag_open (string) – Opening tag used for the highlight $tag_close (string) – Closing tag for the highlight Returns: String with a phrase highlighted via HTML Return type: string Will highlight a phrase within a text string. The first parameter will contain the original string, the second will contain the phrase you wish to highlight

CI_DB_result::custom_row_object()

custom_row_object($n, $type) Parameters: $n (int) – Index of the results row to return $class_name (string) – Class name for the resulting row Returns: The requested row or NULL if it doesn’t exist Return type: $type Returns the requested result row as an instance of the requested class.

CI_Zip::download()

download($filename = 'backup.zip') Parameters: $filename (string) – Archive file name Return type: void Causes the Zip file to be downloaded from your server. You must pass the name you would like the zip file called. Example: $this->zip->download('latest_stuff.zip'); // File will be named "latest_stuff.zip" Note Do not display any data in the controller in which you call this method since it sends various server headers that cause the download to happen and the file to be tre