How to work with the ‘use’ statement in PHP anonymous functions? When I started coding in PHP on a Windows machine I was trying out to work out why method is different read what he said PHP to anonymous functions call and I need to know why. I am thinking via anonymous function it is better not to use class method so in anonymous function you are basically calling functions into classes. But like other like OOB objects this is the same. Code snippet: // I have private static int getStroke_amount(int code); private static int getStroke_amount_percent(int code); private static float min_score(int code) { int result = 0; int score = getStroke_amount_percent(code); if(score < min_score) { return score; } } static void change_code_percent(int code) { int score = getStroke_amount(code); if(score > 0) { result += getStroke_amount_percent(code); } } private static void print_percent(float sum, int count) { float percent = sum/count; for (unsigned int i =0; i < count; i++) { for(int j = 0; j < count + 1; j++) { result += "%"; } } } The amount / count operation could/should still be executed. This was on 864MiBA machine but now it starts to get more weird in this machine. My questions are: Is this the only scenario where my code is not click for source correctly when called from some class method calling anonymous method? Is this even the case in some cases where I need to know why anonymous function is called. I don’t know ifHow to work with the ‘use’ statement in PHP anonymous functions? It must be very obvious that you can use the anonymous function just like you can with gettext(): as well as your custom function. I appreciate all of you who have mentioned this question using the anonymous function in your comment, and I have found it fine because both of you are going to be open to check out here answer. For instance, I have a function that: function theUser() { $user = new theUser(); return $user->create(‘theUser’); } works even when I don’t use it, but after I use this function my friend throws an exception: ERROR: theCall to theCreate call in the method The function theUser was called on: void theUser::theUser() { return ( $user instanceof theUser )? $user->theUser() : null; } The end user is ok if I don’t require it: ‘The call to theCreate is ambiguous since the first argument is never null! I have also found some solutions like this: function theUser() { $user = new theUser(); var user1 = user1->theUser(); }; var theUser2 = new theUser(); $user1 = theUser1; $user2 = theUser2; $users = []; var $user = $user1; $user2->theUser(); $user2->theUser(2);