This one is a doozie!
I have a string set like this:
$deletionSQLImagePathString = '(';
$imageArray = array();
foreach ($delete_selected as $image_name) {
/*-------------------------------------------------------------------------------------------------------------------------------
For coding ease, perform two actions at once:
1) Create the ID Image Path String for deletion purposes
2) create an array of image names adding $locationPath onto them to be able to do a group @unlink
---------------------------------------------------------------------------------------------------------------------------------*/
$deletionSQLImagePathString .= "'$locationPath/$image_name', ";
array_push($imageArray, $image_name);
}
Here is the results of $deletionSQLImagePathString so far:
('/www/html/mu-spin/image_catalog/images/top_banner.gif', '/www/html/mu-spin/image_catalog/images/CorpPortCopy2.jpg', '/www/html/mu-spin/image_catalog/images/main.gif',
However, strrpos() can't find a comma, strpos() can't find a comma, neither can str_replace(), preg_replace(), preg_match, in fact, not one PHP command I know of can find a comma in a string that you can plainly see is there multiple times!
What is going on that nothing works? PHP version 4.3.2
Thanx
Phil