Skip to content

Instantly share code, notes, and snippets.

View discoverlance-com's full-sized avatar
🏠
Focused

Lance Armah-Abraham discoverlance-com

🏠
Focused
View GitHub Profile
@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';
@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 / 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 / 1 Types.md
Created July 29, 2024 12:10 — forked from MrPunyapal/1 Types.md
Types In PHP

Atomic Types (Built-in and Scalar)

// Built-in types
$variable = null;             // null type

// Scalar types
$boolVar = true;              // bool type
$intVar = 42;                 // int type
$floatVar = 3.14;             // float type