vaneet badhan


{ City } jalandhar
< Country > india
* Profession * php/mysql developer
User No # 14112
Total Questions Posted # 0
Total Answers Posted # 5

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 22
Users Marked my Answers as Wrong # 19
Questions / { vaneet badhan }
Questions Answers Category Views Company eMail




Answers / { vaneet badhan }

Question { 3873 }

how can we check mail function with '127.0.0.1' (before
submitting a site?


Answer

i think we can give this ip address as first argument of
mail function, coz the first argument of mail function need
a address to send mail, so it can be used there.

am not dead sure about my answer, if anyone find it true or
false then please let me know at my email

Is This Answer Correct ?    4 Yes 1 No

Question { 7233 }

In How many ways can u represent Not equal?Give Syntax of
all ways..


Answer

well above given answers are alrite but :
in php its :

!=
!==
in mysql its :

<>

Is This Answer Correct ?    5 Yes 2 No


Question { 10029 }

To find out the current year is leap year or not which
date() function we've to use.Give the syntax also


Answer

to check the current year code is :

date("L");
output will be 1 coz 2008 is a leap year.

better way to check is :

$year=2008;
echo date("L",mktime(1,1,1,1,1,$year));
now you can check any year by just changing the value of
variable $year, this is called dynamic programming.

Is This Answer Correct ?    4 Yes 3 No

Question { Maples, 15988 }

How to Define a Constant in PHP? Is $ symbol necessary?


Answer

define(my,60);

echo my;

output will be 60.

define(my,vaneet);

echo my;

output will be vaneet

Is This Answer Correct ?    7 Yes 12 No

Question { 15504 }

I have 10 elements of Array, how can i remove 5 array
element, with single function.


Answer

$a=array(2,4,1,3,22,15);

for($v=0;$v<=4;$v++)
{
unset($a[$v]);
}

This code will remove elements "2,4,1,3,22" from array $a
and the output will be : "15"

Is This Answer Correct ?    2 Yes 1 No