password_get_info()

password_get_info($hash) Parameters: $hash (string) – Password hash Returns: Information about the hashed password Return type: array For more information, please refer to the PHP manual for password_get_info().

parse_smileys()

parse_smileys([$str = ''[, $image_url = ''[, $smileys = NULL]]]) Parameters: $str (string) – Text containing smiley codes $image_url (string) – URL path to the smileys directory $smileys (array) – An array of smileys Returns: Parsed smileys Return type: string Takes a string of text as input and replaces any contained plain text smileys into the image equivalent. The first parameter must contain your string, the second must contain the URL to your smiley folder Example: $str = 'He

ol()

ol($list, $attributes = '') Parameters: $list (array) – List entries $attributes (array) – HTML attributes Returns: HTML-formatted ordered list Return type: string Identical to ul(), only it produces the <ol> tag for ordered lists instead of <ul>.

octal_permissions()

octal_permissions($perms) Parameters: $perms (int) – Permissions Returns: Octal permissions string Return type: string Takes numeric permissions (such as is returned by fileperms()) and returns a three character octal notation of file permissions. echo octal_permissions(fileperms('./index.php')); // 644

now()

now([$timezone = NULL]) Parameters: $timezone (string) – Timezone Returns: UNIX timestamp Return type: int Returns the current time as a UNIX timestamp, referenced either to your server’s local time or any PHP suported timezone, based on the “time reference” setting in your config file. If you do not intend to set your master time reference to any other PHP supported timezone (which you’ll typically do if you run a site that lets each user set their own timezone settings) there is n

nl2br_except_pre()

nl2br_except_pre($str) Parameters: $str (string) – Input string Returns: String with HTML-formatted line breaks Return type: string Converts newlines to <br /> tags unless they appear within <pre> tags. This function is identical to the native PHP nl2br() function, except that it ignores <pre> tags. Usage example: $string = nl2br_except_pre($string);

nice_date()

nice_date([$bad_date = ''[, $format = FALSE]]) Parameters: $bad_date (int) – The terribly formatted date-like string $format (string) – Date format to return (same as PHP’s date() function) Returns: Formatted date Return type: string This function can take a number poorly-formed date formats and convert them into something useful. It also accepts well-formed dates. The function will return a UNIX timestamp by default. You can, optionally, pass a format string (the same type as the

News section

In the last section, we went over some basic concepts of the framework by writing a class that includes static pages. We cleaned up the URI by adding custom routing rules. Now it’s time to introduce dynamic content and start using a database. Setting up your model Instead of writing database operations right in the controller, queries should be placed in a model, so they can easily be reused later. Models are the place where you retrieve, insert, and update information in your database or other

nbs()

nbs([$num = 1]) Parameters: $num (int) – Number of space entities to produce Returns: A sequence of non-breaking space HTML entities Return type: string Generates non-breaking spaces (&nbsp;) based on the number you submit. Example: echo nbs(3); The above would produce: &nbsp;&nbsp;&nbsp; Note This function is DEPRECATED. Use the native str_repeat() in combination with &nbsp; instead.

mysql_to_unix()

mysql_to_unix([$time = '']) Parameters: $time (string) – MySQL timestamp Returns: UNIX timestamp Return type: int Takes a MySQL Timestamp as input and returns it as a UNIX timestamp. Example: $unix = mysql_to_unix('20061124092345');