S
S
Sebastian Pereira2015-02-12 23:36:17
PHP
Sebastian Pereira, 2015-02-12 23:36:17

PHP: 2D array - how to shuffle and display values?

Hello.
There are three arrays

$qs = ($q1,$q2,$q3);
$as = ($a1,$a2,$a3);
$bs = ($b1,$b2,$b3);

How to make it so that arrays and their "subarrays" are displayed in random order, for example
a2,a1,a3
q3,q1,q2,
b1,b3,b2
You don't need to mix string values ​​with each other.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FanatPHP, 2015-02-12
@FanatPHP

array_merge()/shuffle()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question