I'm having trouble understanding two dimensional php arrays, In my database I have a table that stores URLs, it's related to another table that stores tags by a 1 to N relation, the tables look like this:
URL
ID ---> URL_ID
ID
TAG
I'm trying to fetch this structure and store it in a PHP class, but as i do not understand
class Url extends databaseobject{
$list = [
"url" =>,
"tags" => []
];
}
Can someone help me build the correct structure to store my database?