Additional functions for PHP to help you in development.
b_time_to_sec(...)
: return the number of seconds since midnight with hour param in format (H:m:i)b_sec_to_time(...)
: format time with timestamp in entryb_date_format(...)
: format date/time object or timestamp to the given patternb_age(...)
: calculation of age with birthdayb_db_date(...)
: convert date in entry to the database format (computer format)
b_form_protect(...)
: protect data passed into form valuesb_form_control(...)
: control form input data (from $_GET or $_POST)b_form_control_get(...)
: control form input data from $_GETb_form_control_post(...)
: control form input data from $_POST
b_is_secured_page(...)
: is secured page ?b_get_secured_page(...)
: get secured page of given url
b_mb_detect_encoding(...)
: mb_detect_encoding() alternative (using iconv)b_detect_utf_encoding(...)
: detect UTF encoding of string or filesb_remove_bom
(...): remove the BOM of UTF string or filesb_truncate(...)
: truncate stringb_remove_entities(...)
: remove entities from stringb_strtouri(...)
: treat string for urlb_random_string(...)
: generate an hazard stringb_email_account(...)
: extract account part of emailb_email_domain(...)
: extract domain of emailb_nl2p(...)
: surrounds paragraphs with "P" HTML tag and inserts HTML line breaks before all newlines
b_property_get(...)
: get property value to an object when we don't know getter formatb_property_set(...)
: set property value to an object when we don't know setter format
b_array_traverse(...)
: traverse array with keysb_array_merge_recursive(...)
: merge two or more arrays recursively
b_gradient_color(...)
: calculate a gradient destination colorb_img_size(...)
: calculate sizes with new given width and heightb_img_resize(...)
: resize imageb_img_support(...)
: resize support of image