Skip to content

Instantly share code, notes, and snippets.

View isaac-gros's full-sized avatar
🕸️
Your friendly neighborhood web-developer

Isaac isaac-gros

🕸️
Your friendly neighborhood web-developer
View GitHub Profile
@isaac-gros
isaac-gros / acf-console-config.example.yaml
Created June 12, 2020 20:21
General configuration for ACF Console in PHP.
# Configure the destination of fields type.
# NOTE : You must at least create the directories where the files will be stored.
fields:
groups:
# example_group :
# name: 'Example group'
# path: './public/example.php'
basic:
path: './public/basic-fields.php'
@isaac-gros
isaac-gros / array-as-string.php
Last active June 12, 2020 07:35
Write an array as a string in PHP.
<?php
/**
* NOTICE
* This code was made to write simple and multi-dimensional arrays in .php files.
* It print a whole array as a string and it keeps the exact structure given.
* You can use file_put_contents() and pass the output as the 2nd parameter
* to have a clean PHP array written in the file of your choice.
*/