Repetitive commands in php (for – while – do / while)

Repetitive comands in php are similar to the C language. Structure for: for ([Initialization of the variable]; [Condition]; [Increase or decrease of the variable]) { [Instructions]; } The first example we will do is show on the page the numbers from 1 to 100: html> <head> <title> Problem </title> </head> <body> <? php for ($f… Continue reading Repetitive commands in php (for – while – do / while)

Published
Categorized as Tutorials

Conditional commands and their use if else elseif in php

When the program is intended, after reaching a certain point, to take a specific path in certain cases and a different path if the execution conditions differ, the set of instructions is used: if, else and elseif The basic structure of this type of instructions is as follows: if (Condition) { Instruction 1; Instruction 2;… Continue reading Conditional commands and their use if else elseif in php

Published
Categorized as Tutorials

What are String variables?

String variable is a variable that can store a series of characters. For example $string1 = “Hello”; $string2 = “World”; echo $string1. “”. $string2; To concatenate string we use the operator. Keep in mind that the echo command above can be made longer as follows: echo $string1; threw out ” “; echo $string2; As one… Continue reading What are String variables?

Published
Categorized as Tutorials

PHP Variable types

Variable names begin with the $ sign and are case sensitive (language keywords are not). In PHP it is not necessary to define the type before using it, they are created when using them. Variables are declared when assigned a value, for example: $ day = 24; // A variable of type integer is declared.… Continue reading PHP Variable types

Published
Categorized as Tutorials

What is php?

PHP (short for “PHP: Hypertext Preprocessor”) is a high-level interpreted language embedded in HTML pages and executed on the server. You have to understand first how the request of pages works in a browser to start programming in PHP. Communication between client and server without PHP: 1 – Type the address and file to request… Continue reading What is php?

Published
Categorized as Tutorials

Punjab Text Book Board introduces downloadable textbooks

Punjab Text Book board has made available PDF versions of their textbooks online, you can download these bookes from Punjab Governemnt Website pctb.punjab.gov.pk You can also download these books from the following links Download E-Books 2020 Note:  All rights of these books are reserved. No part of these textbooks may be reproduced, distributed, or transmitted in any form… Continue reading Punjab Text Book Board introduces downloadable textbooks