Skip to content

Instantly share code, notes, and snippets.

View foril's full-sized avatar

Farid TOUIL foril

  • La Rochelle, France
View GitHub Profile
@foril
foril / gist:56f8aec9ce338f77d5c3
Created September 9, 2015 20:07
array_keys_ucfirst
/**
* @uses Ucfirst on all keys of multidimensionnal array
* @param Array $array
* @return Array
**/
function array_keys_ucfirst(&$array){
if(!is_array($array)) return $array;
foreach ($array as $key => &$val)
{
$element = array_keys_ucfirst($val);
@foril
foril / gist:bf9c81833d0a9b7141c111ce951decc2
Created May 12, 2020 05:53
Chaining request with Gin - simple exaple
package main
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"net/http"
"time"