Quantcast
Channel: function – An Exploring South African
Browsing all 4 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

PHP: Convert a UTF-16 String to a UTF-8 String

Andrew Walker crafted this handy little PHP function which can convert a UTF-16 encoded string into a more PHP-friendly UTF-8 encoded string.

View Article


Image may be NSFW.
Clik here to view.

Get the Last Day of a Month using PHP

Picked this cool little PHP function to calculate and return the last day of a month for any year off the always informativelutrov interactive website the other day.

View Article


Image may be NSFW.
Clik here to view.

PHP: Implode a Multi-dimensional Array

PHP's implode is a pretty handy function to flatten any array into a single string value, using any piece of 'glue' (basically a substring) that you specifiy to put everything together. Of course,...

View Article

Image may be NSFW.
Clik here to view.

PHP: Print out all Variables passed to a Function

Of course, the easiest way of determining this is to call the function and print out what variables are coming into it, and thanks to some native PHP functions, this turns out to be quite the easy...

View Article
Browsing all 4 articles
Browse latest View live