I want intersect two arrays without using functions . Will anyone please help me ? :( | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I want intersect two arrays without using functions . Will anyone please help me ? :(

The program should be in php

28th Feb 2019, 8:27 PM
Tayyaba Khalid
Tayyaba Khalid - avatar
5 Answers
+ 8
"but you commented on my post *only because* I tagged other languages?" SoloLearn search feature relies on tags when searching, imagine tomorrow somebody wants to search for PHP related threads and end up getting tonnes of irrelevant ones; simply because people take the importance of tags for granted. If tags were used correctly though, the way Search feature works by indexing the tags is ideal, it is not as heavy as indexing the description or title (which are longer). But people like to have things as they please, and thanks to that, we have a weak Search feature in SoloLearn (ironic).
1st Mar 2019, 12:34 AM
Ipang
+ 4
Remember google is your friend: https://code.sololearn.com/wksTHK6Q6WI3/?ref=app Made using second answer from this page: https://stackoverflow.com/questions/30133626/php-merging-arrays-with-for-loops-without-using-array-merge-function And like Coffee☕Underrun stated, please use the appropriate tags for your question. As to not waste others time with question they cannot answer in the stated language and also be more likely to have someone with knowledge of that language look at it.
28th Feb 2019, 9:04 PM
LynTon
LynTon - avatar
+ 4
The more general tags you use, the lesser your chances are to get a specific answer. It's common sense. What do you mean by "intersecting" arrays though? Do you want to find similar elements of two arrays?
28th Feb 2019, 11:42 PM
Hatsy Rei
Hatsy Rei - avatar
0
I am new here :) I thought mostly people use to tag all the languages to findout the answer asap , :) nd yeah sorry to say but you commented on my post only because I tagged other languages? 🤔
28th Feb 2019, 8:51 PM
Tayyaba Khalid
Tayyaba Khalid - avatar
0
Thanks LynTon
1st Mar 2019, 8:33 AM
Tayyaba Khalid
Tayyaba Khalid - avatar