I got a line of code in the project i’m trying to modify/add extension to.
$controller = 'Controller' . preg_replace('/[^a-zZ-Z0-9]/', NULL, $action['class']);
but i’m not sure if this line dose what i think it dose:
Capitalize the first letter, i.e. turn “order” into “Order”
i tried a few tests, but it doesn’t make any sense, as it seems to remove capital letters in words..
This will simply remove the first alphanumeric character in
$action['class'].If you want to uppercase the first letter, use
ucfirst: