other ways to create arrays in php

Q-Report New Topic Comment
1 following
76 views - Last viewed 26 Feb 2021

Linda Brelin: other ways to create arrays in php Jan 25 2021

Is there any other way to create arrays in PHP apart from the code below. I mean something similar to JavaScript arrays pattern

<?php

      $array = array('key' => 'value');

?>

I'm an absolute beginner to PHP, started learning JavaScript 2 weeks ago too

4 likes 2 comments #view likers
➥All Replies
Drop ReplyDo not add emoji
Did you know you can also contest to win Mr. Gootent?