MySQL 2 JSON
It takes an handle of a previously executed MySQL database query and retrieves the results to generate a JSON string with the values of all the result rows.
It takes an handle of a previously executed MySQL database query and retrieves the results to generate a JSON string with the values of all the result rows.
[url=http://wisnercanoes.com/node/2]Example[/url]
<?php
/*
* This script makes a list of content for each month and puts the current month first, and then lists the months coming up.
* It i
<?php
// @param $string A string value to be trimmmed.
// @param $length The max. visible length with added dots. If the string is longer, the remaining part will be trimmed. (Default is 15)
// @pa
<?php
/**
* function humanSize (integer $size)
*
* Receive the file size in bytes and return the human readable value (B, KB, MB)
*
* Example:
*
* echo humanSize(filesize(__FILE__));
*
* ret
<?php
/**
* function randomArray (array $array)
*
* Randomize array values
*
* Example:
*
* $array = array(‘value1′,’value2′,’value3′,’value4’);
*
* $random = randomArray($array);
*
* retu
<?php
/**
* function recursiveDir (string $folder)
*
* Crea un arbol de directorios de manera recursiva
*
* Example:
*
* recursiveDir(‘/tmp/folder/test/random/other’);
*
* return boolean
*/
<?php
/**
* function simpleURI (string $text, boolean $low, boolean $html = false)
*
* Create a optimized url from a regular string
*
* @$low: true/false lowercase / normal case
* @$html: true/
Please delete cuz i haven’t finished the code yet
<?php
function romanNumerals($num){
$n = intval($num);
$res = ”;
/*** roman_numerals array ***/
$roman_numerals = array(
‘M’ => 1000,
‘CM’ => 900,
‘D’ => 500,
‘CD’ => 400,
<?php
function array_repeated($array){
if (!is_array($array))
return false;
$repeated_values = Array();
$array_unique = array_unique($array);
if (count($array) – count($array_unique)