Valet switch PHP version with these commands
Install PHP 5.6 and switch Valet to PHP 5.6
valet stop
brew unlink php71
brew install php56
brew install php56-mcrypt
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
async function doSomething() { | |
console.log("this might take some time...."); | |
await sleep(5000); | |
console.log("done!") | |
} | |
doSomething(); |
ls -d */ | xargs sudo rm -rf
$keyToSearch = 'age';
$valueToSearch = 20;
$multidimensional = [
[
'name' => 'Barry Allen',
'age' => 20,
],
[
'name' => 'Steve Rogers',
Descargar los siguientes paquetes:
Account acc = Database.query('SELECT ' + String.join(new List<String>(Schema.getGlobalDescribe().get('Account').getDescribe().fields.getMap().keySet()), ',') + ' FROM Account');