CI_Output::append_output()

append_output($output) Parameters: $output (string) – Additional output data to append Returns: CI_Output instance (method chaining) Return type: CI_Output Appends data onto the output string. $this->output->append_output($data);

CI_Encrypt::set_mode()

set_mode($mode) Parameters: $mode (int) – Valid PHP MCrypt mode constant Returns: CI_Encrypt instance (method chaining) Return type: CI_Encrypt Permits you to set an Mcrypt mode. By default it uses MCRYPT_MODE_CBC. Example: $this->encrypt->set_mode(MCRYPT_MODE_CFB); Please visit php.net for a list of available modes.

singular()

singular($str) Parameters: $str (string) – Input string Returns: A singular word Return type: string Changes a plural word to singular. Example: echo singular('dogs'); // Prints 'dog'

log_message()

log_message($level, $message) Parameters: $level (string) – Log level: ‘error’, ‘debug’ or ‘info’ $message (string) – Message to log Return type: void This function lets you write messages to your log files. You must supply one of three “levels” in the first parameter, indicating what type of message it is (debug, error, info), with the message itself in the second parameter. Example: if ($some_var == '') { log_message('error', 'Some variable did not contain a value.'); } els

word_wrap()

word_wrap($str[, $charlim = 76]) Parameters: $str (string) – Input string $charlim (int) – Character limit Returns: Word-wrapped string Return type: string Wraps text at the specified character count while maintaining complete words. Example: $string = "Here is a simple string of text that will help us demonstrate this function."; echo word_wrap($string, 25); // Would produce: // Here is a simple string // of text that will help us // demonstrate this // function.

url_title()

url_title($str, $separator = '-', $lowercase = FALSE) Parameters: $str (string) – Input string $separator (string) – Word separator $lowercase (bool) – Whether to transform the output string to lower-case Returns: URL-formatted string Return type: string Takes a string as input and creates a human-friendly URL string. This is useful if, for example, you have a blog in which you’d like to use the title of your entries in the URL. Example: $title = "What's wrong with CSS?"; $url_tit

CI_Input::get_post()

get_post($index[, $xss_clean = NULL]) Parameters: $index (string) – GET/POST parameter name $xss_clean (bool) – Whether to apply XSS filtering Returns: GET/POST value if found, NULL if not Return type: mixed This method works the same way as post_get() only it looks for GET data first. $this->input->get_post(‘some_data’, TRUE); Note This method used to act EXACTLY like post_get(), but it’s behavior has changed in CodeIgniter 3.0.

humanize()

humanize($str[, $separator = '_']) Parameters: $str (string) – Input string $separator (string) – Input separator Returns: Humanized string Return type: string Takes multiple words separated by underscores and adds spaces between them. Each word is capitalized. Example: echo humanize('my_dog_spot'); // Prints 'My Dog Spot' To use dashes instead of underscores: echo humanize('my-dog-spot', '-'); // Prints 'My Dog Spot'

CI_Form_validation::reset_validation()

reset_validation() Returns: CI_Form_validation instance (method chaining) Return type: CI_Form_validation Permits you to reset the validation when you validate more than one array. This method should be called before validating each new array.

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