Skip to content

Instantly share code, notes, and snippets.

View discoverlance-com's full-sized avatar
🧩
Making plans and executing... expect something new

Lance Armah-Abraham discoverlance-com

🧩
Making plans and executing... expect something new
View GitHub Profile
@discoverlance-com
discoverlance-com / phpenv-install.md
Created December 6, 2023 12:22 — forked from sergeyklay/phpenv-install.md
Multiple PHP versions using phpenv and php-build

Multiple PHP versions using phpenv and php-build

Install dependecies

Debian/Ubuntu users

sudo apt install \
  autoconf \
  bison \
@discoverlance-com
discoverlance-com / context.ts
Created March 9, 2023 17:03 — forked from thetutlage/context.ts
Unploy Server API Abstraction for AdonisJS
import Up from './index'
declare module '@ioc:Adonis/Core/HttpContext' {
interface HttpContextContract {
up: Up
}
}
@discoverlance-com
discoverlance-com / array_loop.md
Created November 19, 2020 08:02
Given a multiple nested loop array,loop through the array to get and display each key and value pair.

LOOP THROUGH MULTIPLE NESTED PHP ARRAY AND PRINT OUTPUT

This gist contains a convenient script to loop through a multiple nested php array and return it in a neat and organized html format.

Basic usage

// add sample array.php file, in your case you might just need to add your
// loop variable and remove the include 'example_array.php' statement
include 'example_array.php';
include 'loop.php';