what's the difference from using a direct call a class or use it on the top?
Case 1:
use Carbon\Carbon;
...
public function __construct() {
echo Carbon::now();
}
Case 2
public function __construct() {
echo \Carbon\Carbon::now();
}
which is better? maybe from the cost / load time or anything else? I know the case 1
is much cleaner, but I think there are more pros and cons from both of them.
Maybe someone already asking about this, but sorry I don't know what's the keywords, so I'm going to ask it here. Thanks !