Gooda day guys) Hope you are well this october Saturday...
Learning Routes topic for custom CMS on php now.
And get next code, that do not understand..
So we have function Routes(), that return method for Controller, if it was send.
And Next line misconfused me(
we call "$this->routes" but right after it, we type in brackets "[strtoupper(method)][pattern]"
Guys what does it mean?
Moreover in previous video we have array property $routes.
He was adding the routes in that way
Can you please help, when author write $this->routes[strtoupper(method)][pattern] we are using
here routes as Array?
If its array so how can you assign 2 values here? I mean [method] and [pattern]?