I'm trying to get some data from text file, those data are repeated every random line I'm trying to get this from text file, and there are alot of 2/ ...
I'm trying to get some data from text file, those data are repeated every random line I'm trying to get this from text file, and there are alot of 2/ ...
How to filter multidimensional array with specific keyword in 'title' OR 'description' values, like the data array below: previously i used below c ...
I'm trying to filter a multidimensional array and return the number of entries found for a given category. EDIT I'm trying to avoid any use of fore ...
I want to know how to open a file with .docx, .doc, .pdf extension using php and then read the first line of 50 characters. Code : ****include_once ...
I want to show custom content if current URL contain certain words. So far, I'm able to achieve this if the URL contains just the word, 'cart', usin ...
Consider the following array elements Assume the pattern list is ben,harry,clinton, then the result I should get is So,essentially the result ...
I am using scandir to list all the files in a directory. But there should be an exception for ./, ../ and tmp folder. I already have this to exclude ...
I am using this php code to get all html-files in the given directory: Now I want to get a specific element in the array, for example: This fai ...
how can I exclude more files like branding.php? For example branding.php, about.php, contact.php. Thx. ...
The following code does not capture 45.00 as a result: Any suggestion? ...
After updating my PHP from 5.3 to 7.1.9, I keep getting this error on my get_browser_language function. I tried to debug it using several method but ...
hi I have array of elements containing pattern like $arr = array ('0/' ,'0/12/3','1/2') i need to have array of "0/" elements i've tried to use comman ...
So I'm currently using preg_grep to find lines containing string, but if a line contains special chars such as " - . @ " I can simply type 1 letter th ...
PHP preg_grep not working? I'm PHP beginner, and English communication also. The execution result of this program is indicated by "ArrayArray"... ...
I have this PHP function that works well at searching a multidimensional associative array using a key value pair. I would now like to extend it to se ...
I am currently working on a small script to convert data coming from an external source. Depending on the content I need to map this data to something ...
I need to find any character before or after of a word using PHP preg_grep() from array. I have a array like following $findgroup = array("aphp", "ph ...
I'm looking for an alternative function that works the same as in_array but which could also check if the search term only contains a part of the give ...
I have a problem with pattern in preg_grep. I want to pull line with specific number, source files looks like this : .... 4221 Výstavba inženýrských ...
I have some checkboxes that can be checked. They look like Now I am checking the formdata and I filter the ids in the order-array this way, before ...