Lets say I have an Array like this:
print_r($request_params);
Array (
[chat_id] => 120613381
[text] => Array (
[0] => saadat
[1] => saadat
[2] => saadat
[3] => saadat
[4] => saadat
[5] => saadat
[6] => donya
[7] => donya
[8] => donya
[9]
)
)
As you can see inside of [text] I have multiple values. Now I want to count that but I don't know how to access that part.
My try was this but it returns 0:
echo $num3 = count($request_params[2]["text"]);
So what is your suggest..
$request_params[2]. Just$request_params['chat_id']and$request_params['text'].