![]() When we call the StudentsName() function, we also transfer a name (for example, Janani) used within the function to generate several different first names but the same last name. Code:Ī function with only one argument ($fname) is used in the following example. Arguments are used while exchanging values, such as during a function call. During runtime, these parameters are used to accept inputs. A user can enter as many parameters as he desires, separated by the comma (,) operator. These are used to store the values that can be executed at runtime. ![]() Parameters are the information or variables contained within the function's parenthesis. You can add as many arguments as you want just use a comma to divide them. Arguments are listed within parentheses after the function name. In PHP Function, arguments may be used to transfer information to functions. The function says "Hello welcome!" write the function's name in brackets () to invoke it. ![]() The beginning of the function code is indicated by the opening curly bracket. In the above example, a function called "welcMsg()" is created.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |