Hi Guys/Gals,
Changing the structure of an array a bit from and can not figure out how to get & check the data properly for the life of me.
Array Looks Like:
Array ( [1] => Array ( [http://example1.com] => 1 [My Search Title] => 1 ) [2] => Array ( [http://example2.com] => 1 [Another Search Title] => 1 )[3] => Array ( [http://example3.com] => 1 [Yet Another Title] => 1 ) )
What I'm trying to do:
Basically, I am trying if the URL is the current URL of a web page. If so, then get the corresponding Title to that URL and echo it to the page - else place default title for user.
Have tried combinations such as:
array_key_exists("http://www.example1.com,$session->usersavedpages)) {
echo "In Array";
} else {
echo "Not In Array";
}
Have also tried in_array and a few other functions but no luck.
But no luck so far..any suggestions?