Post History
Set arrays without array() In a few occasions, setting an array using array() can be a bit costly. Thankfully, you can assign an array like how to assign a Python list. <?php $a=["Hello","Ma...
Answer
#1: Initial revision
# Set arrays without `array()` In a few occasions, setting an array using `array()` can be a bit costly. Thankfully, you can assign an array like how to assign a Python list. <!-- language-all: lang-php --> <?php $a=["Hello","MarkFuncs","Golfing"];print_r($a); [Try it online!][TIO-ktgtzp3q] [TIO-ktgtzp3q]: https://tio.run/##K8go@P/fxr4go0BBJdE2WskjNScnX0lHyTexKNutNC@5GMh2z89Jy8xLV4q1LijKzCuJL9JQSdS0/v8fAA "PHP – Try It Online"