sir, can i solve this example which is used in tutorial by using foreach with list function. Sir, please help me because i have try more times and i am not finding the suitable output
ASSALAM WALIKUM SIR... SIR MJHY YE PUCHNA THA APNY YEE JO 2 VARIBLE USE KIYE HEN V1 OR V2 TOU ZARURI HAI HUM V2 USE KAREN DIRECTLY V1 KO PRINT NHE KERWA SKTY KYA?
Uske ke liye kuch khas nahi karna hai. same code he use hoga like ek key ke andar bhi array hai toh kuch aisa hoga code : $innerkeys = array_keys($keys[$i]); Yeh code aapko uppar wale loop ke andar he banana hai aur Phir $innerkeys ke liye inner loop chala lena hai.
@@YahooBaba mene ye code use kiya lekin "array_keys() expects parameter 1 to be array, string given" ye error show ho raha hai can you please solve this
if we get values from database as an associative array, then how we change our key in foreach i.e want to set key as id or name. from database not static
Thanks A ton Sir. I have covered all the content till this video very well in almost a week.
Keep it up
Thankyou sir..one day you have 10M subscribe.tq so much sir for this video.
Thanks dear for ur Good Wishes. :)
pro tip: you can watch series on flixzone. I've been using it for watching all kinds of movies these days.
concept clear hi gya totall
Thanks sir for this awesome video😇😇😇😇😇😇
aap hi ka video dekh rha hu awesome hai.
Thanks Devraj :)
Thanks You So Much Sir,,,,,,,Your Best Video,,,
Wow boht acchese smza 😎🤞🥰thanks for making this videos 🤞🥲🥲🥲
Most welcome 😊
Many Many Thanks
Best videos for php.
Glad you think so!
Deserve more subs....!
Thanks :)
Thank you so much sir. Sir please make videos on mysql and api creations
Coming soon :)
Sir ager hume esme krisha,
Salman, or mohan ki math ki
hi value nikalni ho
Please reply it's urgent
It works like a structure🙂
Thanks Sir.....
sir, can i solve this example which is used in tutorial by using foreach with list function. Sir, please help me because i have try more times and i am not finding the suitable output
ASSALAM WALIKUM SIR... SIR MJHY YE PUCHNA THA APNY YEE JO 2 VARIBLE USE KIYE HEN V1 OR V2 TOU ZARURI HAI HUM V2 USE KAREN DIRECTLY V1 KO PRINT NHE KERWA SKTY KYA?
Sir agar muze chemistry ke marks total add krne h sabhi students ke toh kaise krna btao n please
Hello, How are you
I have one question can we print multidimensional associative array with for loop
Yes we can .....here is an example :
$array = array('key1' => 'value1', 'key2' => 'value2');
$keys = array_keys($array);
for($i=0; $i < count($keys); ++$i) {
echo $keys[$i] . ' ' . $array[$keys[$i]] . "
";
}
@@YahooBaba ok thanks for replying but this is only one dimensional associative array I want multiple dimensional array example can you give me please
Uske ke liye kuch khas nahi karna hai. same code he use hoga like ek key ke andar bhi array hai toh kuch aisa hoga code :
$innerkeys = array_keys($keys[$i]);
Yeh code aapko uppar wale loop ke andar he banana hai aur Phir $innerkeys ke liye inner loop chala lena hai.
@@YahooBaba ok thanks 👍
@@YahooBaba mene ye code use kiya lekin "array_keys() expects parameter 1 to be array, string given" ye error show ho raha hai can you please solve this
Nice
Thanks
if we get values from database as an associative array, then how we change our key in foreach i.e want to set key as id or name. from database not static
I already explained that in further videos PHP with MySQL
Sir, Kia is ma for loop use karna posible ha? Q k wo tho index numbers pa kam karta ha ha?
Hello Umer, bina foreach loop ke bhi Multidimensional Associative Array aap for loop se , while loop se bhi print kar sakte ho ... for e.g. :
$array = array('key1' => 'value1', 'key2' => 'value2');
$keys = array_keys($array);
for($i=0; $i < count($keys); ++$i) {
echo $keys[$i] . ' ' . $array[$keys[$i]] . "
";
}
Ismein meine Array ke functions use kiye hai jo aap aage aani wali videos mein seekho ge.
👌
can we access a value directly without knowing a key name in multidimensional associative array ???
NO we can't access
actually we can access by using foreach loop ,
Sir Make a Framework Video Like CodeIgniter soon
sir Laravel tutorial kb tk aye ga?
Sir mana 3 rows ko same name diya and 1 row ko different diya tho mara pas 2 row result aya, Ek different row ka and 3 same masa ek ka Q?
Umer ek Associative array mein aap Ek (Key Name) ko ek hi baar use kar sakte ho.
Sir how to make searching with this, use e foreach and if? Answer please
sourish banerjee
How to get inner associative array heading/value with looping
sir multidimensional associative array or multidimensional array me difference kya he. konsa kab use karenge
jisme key or values hon eg. "name"=>"jayant" ...is tarah ke array associative hote h
sir table to bna nhi mere
I subscribe your channel i hope i will benefit
Thanks and welcome :)
sourish banerjee
php laravel start kara