Results: 1578
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
by დავით ქუთათელაძე
3 years ago
0
PHP
case sensitivity
1
by დავით ქუთათელაძე
3 years ago
0
PHP
rules to create php variable
1
➤ Ternary operators can be defined as a conditional operator that is reasonable for cutting the lines of codes in your program while accomplishing comparisons as well as conditionals. This is treated as an alternative method of implementing if-else or even nested if-else statements. Syntax:
(Conditional statement) ? (Statement_1) : (Statement_2);
For instance:
$result = 62;
echo $result >= 50 ? "Passed\n" : "Failed\n";
// outputs:   Passed


$x = 10;
$y = 20;
$max = $x > $y ? $x : $y;
echo $max."\n";
// outputs:   20


function minvalue($a,$b) {
	return $a > $b ? $a : $b;
}
echo minvalue(150,70);
// outputs:    150
by Levani Makhareishvili
3 years ago
0
PHP
Operators
2
by nikoloz nachkebia
3 years ago
0
PHP
PHP else-if statement
1
by დავით ქუთათელაძე
3 years ago
0
PHP
the continue statement
1
by nikoloz nachkebia
3 years ago
0
PHP
User-defined functions
1
by nikoloz nachkebia
3 years ago
0
PHP
PHP If statement
1
Variable types
string
$name = 'oto' ;
integer
$age = 32;
float
$height= 1.8;
booleean
$android = true;
array
$fruits = [apple , watermelon , orange ];
by otar datuadze
3 years ago
0
PHP
variable types
0
by დავით ქუთათელაძე
3 years ago
0
PHP
break statement
-1
by დავით ქუთათელაძე
3 years ago
0
PHP
logical operators
0
Results: 1578