Sprintf Function Snippets

A JavaScript implementation of the famous sprintf() function

C code example for useful macros, functions and tricks

Several hundred user notes on the str_replace page later, and we have a function that provides a variety of text highlighting options for plaintext or HTML strings.

12 January, 2014   

This is a pretty simple little snippet, but it help understanding how to use relational tables w/in PHP.

03 March, 2011   

Count Script Execution Time

PHP code example to get All-Time Number of MySQL Queries

07 March, 2011   

Shows how to upload a single file to a FTP server.

03 June, 2013   

Plots a histogram from an external file with the frequency of each bin shown above each bar. The XTick is also the intervals of the histogram.

10 November, 2014   

Easy way to parses RSS into an array

28 October, 2014   

Quick and simple example to parses RSS into an array

17 July, 2013   

This one creates a back of the current workbook.

C++ code snippet for function pointer to member function of class

Example source code for function pointer to member function of class

In Delphi, procedural types (method pointers) allow you to treat procedures and functions as values that can be assigned to variables or passed to other procedures and functions. Here's how to call a function (or procedure) as a parameter of another function (or procedure) : Declare the function (or procedure) that will be used as a...

12 August, 2012   

Simple but utilitarian function returns a numeric array of associative arrays containing an entire result set.

18 June, 2011   

You can create a function for logging system

11 July, 2011   

We have created our first function, but a function usually need one or more parameters, so let us have a look at that. The next function is a simple echo function which just print the text to screen.

04 February, 2012   

PHP function example that writes a name when it is called.

Simple way to do the opposite of what the nl2br() function does- turns breaks () into new lines.

26 December, 2011   

Allows for the creation of calendars in HTML pages