a few questions on strings vs arrays for text processing.
Is it possible to pass a js array[] to php as an array without converting it to a string or using JSON? Just pass it as an ordinary array without manipulation.
In php and JS (or any other language), in general, which format is faster for processing or searching text (for very large arrays or text strings). Example:
string = abc,def,dfa,afds,xyz,afds,xxx
array = {"abc","xyz","xxx"}
Which is faster to use to search to see if xyz is present/match?
Which is faster to use to determine the index position of xyz?
Which has a smaller memory size/usage?
TIA.
Edit: the answer to point 1 is no I guess, but for point 2, please understand that I am asking because I am dealing with a program that makes concurrent ajax calls that requires the processing of very large arrays or text strings. The usability of the interface depends on the speed of the returned ajax calls. I had to scrap the original code because of this problem.