Results: 1578
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
Logical operators are used to combine conditional statements.
and
($x and $y) True if both $x and $y are true
$x = 40; 
$y = 50;
if ($x > 30 and $y > 45) {
    echo "True";
}
or
($x or $y) True if either $x or $y is true
$x = 40; 
$y = 50;
if ($x > 30 or $y == 85) {
    echo "True";
}
xor
($x xor $y) True if either $x or $y is true, but not both
$x = 40; 
$y = 50;
if ($x > 30 xor $y == 85) {
    echo "True";
}
&&
($x && $y) True if both $x and $y are true
$x = 40; 
$y = 50;
if ($x > 30 and $y > 45) {
    echo "True";
}
||
($x || $y) True if either $x or $y is true
$x = 40; 
$y = 50;
if ($x > 30 or $y == 85) {
    echo "True";
}
!
(!$x) True if $x is not true
$x = 40;
if ($x !== 50) {
    echo "True";
}
by Valeri Tandilashvili
3 years ago
0
PHP
Operators
1
HTML დამწყებებისთვის
HTML დამწყებებისთვის
by gocha akhalbedashvili
3 years ago
1
HTML
beginner
HTML Tutorial for Beginners
0
Variables
<?php $minNumber = 1; $maxNumber = 100; $sum; function myCounter(){ global $minNumber,$maxNumber, $sum; $sum= $minNumber + $maxNumber; // if i want to use global variables in function must use global or GLOBALS[] } myCounter(); echo $sum; // output 101 ?>
by Mikheili Maglaperidze
3 years ago
0
PHP
0
If Statement CODE
`If string value(number) is less than 5 returns "Your number is less than 5!"

$st = strlen("game"); // returns 4

if ($st < 5 ) {
	echo "Your number is less than 5!". "\n";
` if number is more than 5, but less than 10 returns: } elseif ($st < 10) { echo "Your number is less than 10!". "\n";
`
And finally, if the number is higher than 10 returns:

	} else {
		echo "Your number is out of the range:("."\n";
	}
`
by Gigi Butchvelashvili
3 years ago
0
PHP
IF statement
0
Line1
Hello world, This is sample text
Line2
Hello, world What's going On
We want to search string that contains:
world & going
words VISUAL STUDIO Example:
STEP 1: Press CTRL + F (Open find dialog)
STEP 2: Press ALT + R (Use Regular expression)
STEP 3: Write 
world(.*)going
in the search field
The search result will be:
Hello, 
world
What's
going
On
because it contains the same time words "world" and "going"
by Luka Tatarishvili
3 years ago
0
0
Variables are used to store data, like string of text, numbers, etc. Variable values can change over the course of a script. Here're some important things to know about variables: 1. In PHP, a variable does not need to be declared before adding a value to it. PHP automatically converts the variable to the correct data type, depending on its value. 2. After declaring a variable it can be reused throughout the code. The assignment operator (=) used to assign value to a variable. Naming Conventions for PHP Variables These are the following rules for naming a PHP variable: All variables in PHP start with a $ sign, followed by the name of the variable. A variable name must start with a letter or the underscore character _. A variable name cannot start with a number. A variable name in PHP can only contain alpha-numeric characters and underscores (A-z, 0-9, and _). A variable name cannot contain spaces.
by Gigi Butchvelashvili
3 years ago
0
PHP
Variable
0
==
(Equal) Returns true if $x is equal to $y
$x = 40; 
$y = "40";
var_dump($x == $y); // true
===
(Identical) Returns true if $x is equal to $y, and they are of the same type
$x = 40; 
$y = "40";
var_dump($x === $y); // false
!=
(Not equal) Returns true if $x is not equal to $y
$x = 40; 
$y = "40";
var_dump($x != $y); // false
<>
(Not equal) Returns true if $x is not equal to $y
$x = 40; 
$y = "40";
var_dump($x <> $y); // false
!==
(Not identical) Returns true if $x is not equal to $y, or they are not of the same type
$x = 40; 
$y = "40";
var_dump($x !== $y); // true
>
(Greater than) Returns true if $x is greater than $y
$x = 40; 
$y = 50;
var_dump($x > $y); // false
<
(Less than) Returns true if $x is less than $y
$x = 40; 
$y = 50;
var_dump($x < $y); // true
>=
(Greater than or equal to) Returns true if $x is greater than or equal to $y
$x = 40; 
$y = 50;
var_dump($x >= $y); // false
<=
(Less than or equal to) Returns true if $x is less than or equal to $y
$x = 40; 
$y = 50;
var_dump($x <= $y); // true
by Valeri Tandilashvili
3 years ago
0
PHP
Operators
1
Assignment operators are used with:
integer
and
float
values to write / update a variable value. Simple Assignment
$y = 9;
$x = $y;
echo $x . "\n";
Addition
$x = 40; $y = 9;
$x += $y; // same as: $x = $x + $y
echo $x . "\n";
Subtraction
$x = 40; $y = 9;
$x -= $y; // $x = $x - $y
echo $x . "\n";
Multiplication
$x = 40; $y = 9;
$x *= $y; // $x = $x * $y
echo $x . "\n";
Division
$x = 40; $y = 9;
$x /= $y; // $x = $x / $y
echo $x . "\n";
Modulus
$x = 40; $y = 9;
$x %= $y; // $x = $x % $y
echo $x . "\n";
by Valeri Tandilashvili
3 years ago
0
PHP
1
Arithmetic operators work with:
integer
and
float
values to perform arithmetical operations. Let's define two variables:
number1
and
number2
and perform these operations
$number1 = 40;
$number2 = 9;
Addition
echo $number1 + $number2 . "\n";
Subtraction
echo $number1 - $number2 . "\n";
Multiplication
echo $number1 * $number2 . "\n";
Division
echo $number1 / $number2 . "\n";
Modulus
echo $number1 % $number2 . "\n";
by Valeri Tandilashvili
3 years ago
0
PHP
Operators
5
Meeting 1
PHP Variables https://learning.applications.ge/note/public/3278 https://www.sololearn.com/learning/1059/1797/3456/1 https://www.w3schools.com/php/php_variables.asp https://www.javatpoint.com/php-variables https://www.tutorialrepublic.com/php-tutorial/php-variables.php Arithmetic Operators https://learning.applications.ge/note/public/3293 https://www.sololearn.com/learning/1059/1803/3469/1 https://www.w3schools.com/php/php_operators.asp Assignment Operators https://learning.applications.ge/note/public/3294 https://www.sololearn.com/learning/1059/1804/3472/1 https://www.w3schools.com/php/php_operators.asp Comparison Operators https://learning.applications.ge/note/public/3295 https://www.sololearn.com/learning/1059/1805/3503/1 https://www.w3schools.com/php/php_operators.asp Rules to create PHP variable https://learning.applications.ge/note/public/3277 https://www.roseindia.net/tutorial/php/phpbeginners/PHPvariable.html Case Sensitivity https://learning.applications.ge/note/public/3283 https://tutorialsclass.com/faq/is-php-a-case-sensitive-language/ PHP Comments https://learning.applications.ge/note/public/3279 https://www.sololearn.com/learning/1059/1795/3453/1 https://www.w3schools.com/php/php_comments.asp https://www.javatpoint.com/php-comments https://www.phptutorial.net/php-tutorial/php-comments/ echo / print https://learning.applications.ge/note/public/3280 https://www.sololearn.com/learning/1059/1794/3450/1 https://www.w3schools.com/php/php_echo_print.asp https://www.javatpoint.com/php-echo https://www.javatpoint.com/php-print https://www.tutorialrepublic.com/php-tutorial/php-echo-and-print-statements.php Differences between echo and print https://learning.applications.ge/note/public/3281 https://www.javatpoint.com/php-echo-and-print-statements Variable types https://learning.applications.ge/note/public/3282 https://www.sololearn.com/learning/1059/1796/3501/1 https://www.w3schools.com/php/php_datatypes.asp https://www.tutorialspoint.com/php/php_variable_types.htm https://www.javatpoint.com/php-data-types https://www.phptutorial.net/php-tutorial/php-data-types/ https://www.tutorialrepublic.com/php-tutorial/php-data-types.php Array types https://learning.applications.ge/note/public/3286 https://www.sololearn.com/learning/1059/1807/3476/1 https://www.sololearn.com/learning/1059/1808/3504/1 https://www.sololearn.com/learning/1059/1809/3505/1 https://www.w3schools.com/php/php_arrays.asp https://www.tutorialspoint.com/php/php_arrays.htm https://www.phptutorial.net/php-tutorial/php-array/ https://www.phptutorial.net/php-tutorial/php-associative-arrays/ https://www.phptutorial.net/php-tutorial/php-multidimensional-array/ https://www.tutorialrepublic.com/php-tutorial/php-arrays.php String functions https://learning.applications.ge/note/public/3284 https://www.w3schools.com/php/php_string.asp https://www.tutorialrepublic.com/php-tutorial/php-strings.php Math functions https://learning.applications.ge/note/public/3285 https://www.w3schools.com/php/php_math.asp If statement https://learning.applications.ge/note/public/3287 https://www.w3schools.com/php/php_if_else.asp https://www.tutorialspoint.com/php/php_decision_making.htm https://www.phptutorial.net/php-tutorial/php-if/ https://www.tutorialrepublic.com/php-tutorial/php-if-else-statements.php If-else statement https://learning.applications.ge/note/public/3288 https://www.sololearn.com/learning/1059/1823/3515/1 https://www.phptutorial.net/php-tutorial/php-if-else/ Else-if statement https://learning.applications.ge/note/public/3289 https://www.sololearn.com/learning/1059/1824/3517/1 https://www.phptutorial.net/php-tutorial/php-if-elseif/ Logical Operators https://learning.applications.ge/note/public/3305 https://www.sololearn.com/learning/1059/1806/3474/1 https://www.w3schools.com/php/php_operators.asp User defined functions https://learning.applications.ge/note/public/3290 https://www.sololearn.com/learning/1059/1834/3540/1 https://www.sololearn.com/learning/1059/1835/3542/1 https://www.w3schools.com/php/php_functions.asp https://www.tutorialspoint.com/php/php_functions.htm https://www.phptutorial.net/php-tutorial/php-function/ https://www.tutorialrepublic.com/php-tutorial/php-functions.php Loops https://learning.applications.ge/note/public/3291 https://www.sololearn.com/learning/1059/1826/3521/1 https://www.w3schools.com/php/php_looping.asp https://www.tutorialspoint.com/php/php_loop_types.htm https://www.phptutorial.net/php-tutorial/php-for-loop/ https://www.tutorialrepublic.com/php-tutorial/php-loops.php The break statement https://learning.applications.ge/note/public/3316 https://www.w3schools.com/php/php_looping_break.asp The continue statement https://learning.applications.ge/note/public/3317 https://www.sololearn.com/learning/1059/1831/3531/1 https://www.w3schools.com/php/php_looping_break.asp Main resources to learn PHP basics: https://www.php.net/ (official doc) https://www.sololearn.com/learning/1059 https://www.w3schools.com/php/ https://www.phptutorial.net/ https://www.tutorialrepublic.com/php-tutorial/ https://www.tutorialspoint.com/php/ https://www.javatpoint.com/php-tutorial PHP online editors: https://onlinephp.io/ https://www.writephponline.com/ https://www.mycompiler.io/new/php
by Valeri Tandilashvili
3 years ago
0
PHP
4
Results: 1578