Mam taki problem, mianowicie tablica którą posiadam ma takie same pytania z róznymi odpowiedziami.
Jak mogę zrobić aby pytania występowały tylko raz i miały zliczone odpowiedzi ?
wynik z var_dump()
't' => int 0 'f' => int 1 'question' => string '<p>4</p>' (length=8) 't' => int 0 'f' => int 1 'question' => string '<p>6</p>' (length=8) 't' => int 0 'f' => int 1 'question' => string '<p>3</p>' (length=8) 't' => int 0 'f' => int 1 'question' => string '<p>5</p>' (length=8) 't' => int 0 'f' => int 1 'question' => string '<p>2</p>' (length=8) 't' => int 0 'f' => int 1 'question' => string '<p>4</p>' (length=8) 't' => int 0 'f' => int 1 'question' => string '<p>5</p>' (length=8) 't' => int 0 'f' => int 1 'question' => string '<p>1</p>' (length=8) 't' => int 1 'f' => int 0 'question' => string '<p>1</p>' (length=8) 't' => int 1 'f' => int 0 'question' => string '<p>2</p>' (length=8) 't' => int 1 'f' => int 0 'question' => string '<p>3</p>' (length=8)
chciałbym jakoś dostać postać (dodałem wartośći)
't' => int 1 'f' => int 1 'question' => string '<p>3</p>' (length=8)
Z góry bardzo dziękuje za pomoc !