Adding parameter(s) within function called functions with Params.
//functions with params
function sum($x,$y) {
$num1=$x;
$num2=$y;
echo $num1+$num2."<br />";
}
sum(2,3);
sum(4,5);
sum(100,300);
by dev
Adding parameter(s) within function called functions with Params.
//functions with params
function sum($x,$y) {
$num1=$x;
$num2=$y;
echo $num1+$num2."<br />";
}
sum(2,3);
sum(4,5);
sum(100,300);
by dev
User-defined functions are functions created by the programmer. They’re defined using the function keyword. The functions are different from built in function, and reusable.
// user defined function
function sum() {
$num1=10;
$num2=20;
echo $num1+$num2;
}
sum(); // call the function
by dev
PHP Built-in functions are the standard functions that are always available in PHP without any special requirement like.
strlen(): To get the length of a string.
array_merge(): To merge two or more arrays.
is_numeric(): To check if a variable is a number or a numeric string.
Build In Functions List
https://www.php.net/manual/en/indexes.functions.php
by dev
Git & GitHub
Git Setup and Configuration
Git Initialization
| Git | GitHub |
|---|---|
| 1. Tool/Software | 1. Service |
| 2. Change control, Version control | 2. Host git repository |
| 3. Provides CLI (Command Line Interface Tool) | 3. Provides GUI (Graphical User Interface) |
| 4. Installed and maintained locally | 4. Maintained on cloud/web |
https://git-scm.com/downloads
git --version
git config --global user.name Shahadat Hossain git config --global user.name git config --global user.email bdhostit@gmail.com git config --global user.email
by dev
Two ways to solve the problem
TAKEOWN /F C:\Windows\System32\TestFolder\deleteFile.dill
icacls C:\Windows\System32\TestFolder\deleteFile.dill /grant Administrators:F /T
If you are not comfortable with Command Prompt try with File Explorer.