learnphponline101
@learnphponline1
We hope to provide you with expert PHP knowledge
Вам может понравиться
Closures Sometimes you can use closures to have code that is dynamic but does have some behaviors you want to centralize. learn-php.online/closures/
Try Catch Code will give errors... it just happens. When this happens you want to catch the error by handling the exception learn-php.online/try-catch/
Similar_text Calculates the similarity between two strings and returns the number of matching chars in both strings. learn-php.online/similar_text/
Print_r This is print readable. With this function you can debug arrays and objects learn-php.online/print_r/
PHP - FANN - Fast Artificial Neural Network With FANN you can train a neural network with the use of PHP. The methods are connected to C code that actually execute training, that's why this is still fast. See php.net/manual/en/book… learn-php.online/php-fann-fast-…
php.net
PHP: FANN - Manual
FANN (Fast Artificial Neural Network)
String When optimizing your code the preferred method is single quotes. Many examples on the internet show double quotes but it has some performance overhead that in most cases you do not need. learn-php.online/string/
Implode Sometimes you need to get from an array to a string. To do that, to glue the values, you can use implode. learn-php.online/implode/
Sleep Sometimes you want your application to wait a bit. Maybe when you want another server to have some time to process your request or something like that. You can do this with sleep. When more precision is needed you can also use usleep. learn-php.online/sleep/
Objects An object can hold information in memory. It's a collection of values and functions. learn-php.online/objects/
Count With this method you can count the amount of items in an array. learn-php.online/count/
Switch This is the same as een If / Elseif / Else but in a different syntax. Sometimes we prefer this style for readability. But please note this method is a bit slower then the if statement. See: phpbench.com learn-php.online/switch/
phpbench.com
BenchPHP
Your database in PHP
Foreach loop A loop is designed so that you are able to iterate over a list of values. This can be very helpful. For example, the google search result page is a list of values. That is also being generated by loop. learn-php.online/foreach-loop/
Double quotation marks // Output -> He drank some apple juice echo "He drank some $juice juice."; learn-php.online/double-quotati…
If / Elseif / Else You can add multiple elseif statement so that multiple options can be made. learn-php.online/if-elseif-else/
If / Else With this statement you can let the application choose a specific flow. In this example we output something on the screen with an echo statement. learn-php.online/if-else/
United States Тренды
- 1. Drake London 5,726 posts
- 2. Packers 37.9K posts
- 3. Colts 31.3K posts
- 4. Steelers 45.9K posts
- 5. FanDuel 35.5K posts
- 6. Falcons 25K posts
- 7. Daniel Jones 5,765 posts
- 8. Bengals 31.5K posts
- 9. Jordan Love 7,673 posts
- 10. Bears 48.7K posts
- 11. Lions 52.9K posts
- 12. Panthers 28K posts
- 13. Vikings 31.9K posts
- 14. Caleb Williams 4,303 posts
- 15. Tee Higgins 4,458 posts
- 16. Parker Romo N/A
- 17. #HereWeGo 4,927 posts
- 18. #Skol 3,078 posts
- 19. Matt LaFleur 1,796 posts
- 20. #NYGiants 3,596 posts
Вам может понравиться
Something went wrong.
Something went wrong.