Answers for "list to array php"

PHP
0

toarray php

<?php
$collection = new DsVector([1, 2, 3]);

var_dump($collection->toArray());
?>
Posted by: Guest on July-27-2021
5

list() php

$info = array('Doina', 'brown', 'long');

// Listing all the variables
list($she, $color, $hear) = $info;
echo "$she has $color eyes color and $hear black hair.n";
Posted by: Guest on August-05-2020
0

php array to array collection

$collection = new ArrayCollection($allQuestions);
Posted by: Guest on July-04-2021

Browse Popular Code Answers by Language