Thursday, 28 July 2011

some basic string functions in PHP.

hi,

The php functions i have learnt today are...

1.strlen(string or $variable) -- tells the length of the string.

$var = 'hello';
echo strlen($var);

o/p: 5

2. strrev(string or $variable) -- reverses the given string.

$var = 'hello';
echo strrev($var);

o/p: olleh

3. strtolower(string or $varible) -- makes the entire string into lower case.

$var = 'HEllO';
echo strtolower($var);

o/p: hello

4. strtolower(string or $varible) -- makes the entire string into upper case.

$var = 'hello';
echo strtoupper($var);

o/p: HELLO

5. ucfirst(string or $varible) -- makes the first character of the string into upper case.

$var = 'hello';
echo ucfirst($var);

o/p: Hello

6. ucwords(string or $varible) -- makes the first character of the string into upper case.

$var = 'hello there';
echo ucwords($var);

o/p: Hello There

7. explode(delimiter,str,limit(optional)) -- splits the given string on every delimiter.

$fullname = 'bullet paandi';
$name = explode(" ",$fullname);
echo "firstname = ".$name[0];
echo "lastname = ".$name[1];

o/p: firstname = vijay lastname = kumar

8. str_split(str,split_length(optional)) -- splits the given string accordind to split length.

$fullname = 'bullet paandi';
$name = str_split($fullname,3);
echo " ".$name[0];
echo " ",$name[1];
echo " ".$name[2];
echo " ".$name[3];

o/p: bul let pa and i

Tuesday, 12 July 2011

TANCET M.E, MBA, MCA Unofficial Rank List.

Hi,

This year i appeared for the TANCET for M.E. My score is 50.381,  from the moment the result came, i was waiting for the unofficial rank list. I saw it today in the internet. The link where i found it was,

http://www.scribd.com/doc/58698616/Tancet-2011-Me-Rank-List-Pre-Counselling

there is also unofficial rank list for MBA and MCA.

the links are...

http://www.scribd.com/doc/58645861/TANCET-2011-MBA-RANK-LIST-Pre-Counseling

http://www.scribd.com/doc/58678928/Tancet-2011-Mca-Rank-List-Pre-Counselling

Note : If you wanna search your number just type in the search field of black pop up of scribd.