У нас вы можете посмотреть бесплатно User Defined Functions - PHP - P35 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Functions can be a difficult topic to grasp if you're a new programmer. I'm sure you were exposed to functions in math, but do you really understand what the term "function" means? Think about an automotive plant: You bring the materials to the plant. You feed the plant with those materials. The plant takes the materials and somehow produces a car (we'll be focusing on this one). The plant itself is the function. If you were an engineer, you would know what machinery needs to go inside of the plant in order to produce the car. Since we said that the plant is the function in this case, the internals of the plant are the internals of the function. The engineer that's implementing the internals of the plant literally translates to the programmer. The programmer knows how to construct the internals of the function. Let's create our own virtual automotive plant (function). We'll start off easy. The engineer (programmer) will create the automotive plant (function) and the only thing that the plant will do is print out "I am an auto plant." Inside of the actual plant, this could be done by a printer or even some person writing down the words. In our virtual plant (function) we can use the echo statement to print out the words. Before we can do that, we have to understand the anatomy of the user-defined function. function function_name() { // function body } The function starts with the keyword function followed by the function name. The function name can be any valid PHP name. Function names follow the same naming convention as variables: letter or underscore, followed by a series of letters, numbers, or underscores. The parentheses come next. In this case, there are no arguments that are passed to the function (we'll cover that later). After the parentheses, the opening curly brace signifies the opening of the function body. This is where you will place your echo statement (or any other code). Function bodies can have multiple lines of code; each line of code is separated with a semi-colon (go figure). Finally, the closing curly brace is used to signify the end of the function. Read the full article on my website https://www.dinocajic.com/php-user-de... Code for this tutorial https://github.com/dinocajic/php-7-yo... Full Code https://github.com/dinocajic/php-7-yo... PHP Playlist • PHP Tutorial -- Dino Cajic Author and Head of IT Homepage: https://www.dinocajic.com GitHub: https://github.com/dinocajic Medium: / dinocajic Instagram: / think.dino LinkedIn: / dinocajic Twitter: / dino_cajic My Books An Illustrative Introduction to Algorithms https://www.amazon.com/dp/1686863268 Laravel Excel: Using Laravel to Import Data https://amzn.to/4925ylw Code Along With Me - PHP: From Basic to Advanced PHP Techniques https://amzn.to/3M6tlGN