PHP IF ELSE & ELSEIF STATEMENTS - PHP LESSON 8 STUDENTSBLOG100


Conditional statements in php are..
  • If statement
  • If else statement
  • elseif statement
If Statement:

Syntax:
Example:
Output:
Above condition is correct

If else Statement:

Syntax:
Example php program to check condition:
Output:
Condition is False

If elseif else Statement:

Syntax:
Example php program to find biggest among 3 numbers:
Output:
b is big


Lesson 7  Previous | Lesson 0 | Next Lesson 9

Read more ...

DATE MONTH YEAR TIME FUNCTIONS IN PHP - PHP LESSON 7 STUDENTSBLOG100

In this tutorial date and time functions of php are discussed. Lets check out most common php date functions that mu be known to a php developer.

date("y")
Returns the current year from system date

date("m")
Returns the current month from system date (For January it displays 1)

date("n")
Returns the current month from a date without leading zeroes ( eg. "1" instead of "01") - with today's date (For January it displays 01)

date("F")
Returns the current month name from a date

date("d")
Returns the current day of the month from a date

date("l")
Returns the name of the current weekday from a date.

date("w")
Returns the current day of the week from a date.

date("H")
Returns the current hour from a system time

date("i")
Returns the current minute from a system time

date("s")
Returns the current second from a system time

Exapmple:
Output:
23:10:14
10-23-14
Thursday
October
2014

Lesson 6 Previous | Lesson 0 | Next Lesson 8

Read more ...

PHP STRING FUNCTIONS - PHP LESSON 6 STUDENTSBLOG100


In this Php tutorial 6, we are gonna to study about php basic string functions that a developer must know.

The two main string functions in php are
  • String Length
  • String Position
String Length:
This function is used to find the length of the string.

Syntax:
  • strlen("string") or strlen(stringname)
Example:


Output:
16
5

String Position:
This function is used to find the position of the string.

Syntax:
  • strpos("string","a letter or word to find its position");
Example:


Output:
8
12

Note : Count of string will be start by 0.

Lesson 5 Previous | Lesson 0 | Next Lesson 7

Read more ...

ANNA UNIVERSITY RANK HOLDERS LIST 2014 FOR UG/PG

Anna University announced the Rank List for affiliated colleges for the April/May 2014 examination on 19-10-2014. Now you can check your x-final year college student's rank list. This rank list was listed based on Anna University ranking rules. 
Congratulation for all the students who secured top ranks in Anna University affiliated colleges.
ANNA UNIVERSITY RANK HOLDERS LIST 2014
ANNA UNIVERSITY RANK HOLDERS LIST 2014
PG Rank Holders List 2014 --> Click Here
UG Rank Holders List 2014 --> Click Here

How to get University Rank :
  • A candidate should get pass in all the subjects in first class or first class with distinction in the first attempt.
  • And some calculations will be done to select the rank holders at the rate of 1 for every 20 students who are eligible as above.
Read more ...

PHP OUTPUT STATEMENTS - PHP LESSON 5 STUDENTSBLOG100


In this tutorial we are going to discuss about output statements in PHP. In C Programming language the output statement is printf, In C++ Programming language the output statement is cout <<. Like the same in PHP Programming language, the output printing statement is echo. Totally there are two methods to print output in PHP.

Two output statements in  PHP are..
  • Echo
  • Print
Echo:
Used for printing one and more lines in output

Syntax:

Output:
Hello World!
1st string 2nd string 3rd string

Print:
Used for printing one line.. We suggest to use echo statement to print output in php.

Syntax:

Output:
Hello World!

Lesson 4 Previous | Lesson 0 | Next Lesson 6

Read more ...