.


:




:

































 

 

 

 


PHP goto




:

1.

2.

 

21.

PHP

:

1 \

2. %

3. /

4. mod

 

22.

:

echo '['..2.']';

:

1. [2]

2. [0.2]

3. [.2]

4.

 

23.

__FILE__

:

1. ,

2. ,

3. ,

4.

 

24.

PHP

:

1. session_id()

2. session_register()

3. session()

4. session_name()

25.

, return

:

1. require()

2. include()

3. require_once()

4. include_once()

 

26.

PHP

:

1. unlink()

2. remove()

3. del()

4. unset()

 

27.

,

:

1. php.exe &pt=1

2. php.exe file.php "&pt=1"

3. php.exe file.php &pt=1

4. php.exe file.php -&pt=1

 

28.

, , , ,

:

1. $_SERVER['REMOTE_HOST']

2. $_SERVER['REMOTE_ADDR']

3. $_SERVER['HTTP_HOST']

4. $_SERVER['DOCUMENT_ROOT']

29.

, HTML

:

1. strip_tags()

2. htmlspecialchars()

3. striphtmlchars()

4. addslashes()

 

30.

:

1. $s = fwrite("a string here");

2. $s = fwrite($fp, "a string here");

3. $s = fwrite("a string here", $fp);

4.

 

31.

,

:

1. checkdate()

2. date()

3. gmstrftime()

4. idate()

32.

PHP <br>

:

1. htmlentities()

2. nl2br()

3. strip_tags()

4. convert()

2 - 4

:

33.

$key:

$mass = array("1"=>"a","2"=>"b","3"=>"c","4"=>"d");

$key = 3;

:

1. $mass[key]

2. $mass($key)

3. $mass[$key]

4. $mass=>$key

34.

:

$arr = array(

1=>'',

',

',

'

);

echo $arr[3];

:

1.

2.

3. false

4.

 

35.

:

Function func($a) {

If ($a > 0) return;

Echo $a;

}

:

1. : func

2. : ,

3. : , $a

4.

36.

:

$i = 0;

do {

$i++;

}while ($i> 10);

echo $i;

:

1. 9

2. 10

3. 0

4. 1

37.

:

Lt;?php

$mas = array('', 1, array(1,4,6));

echo $mas[2];

?>

:

1.

2.

3. 1, 4, 6

4. Array

 

38.

:

Lt;?php

echo floor((0.1+0.7)*10);

?>

:

1. 8

2. 7

3. 7.99999

4. ,

39.

:

Lt;?

$a[5]=5;

$a[]=4;

if (isset($a[6])) echo "5";

else echo "6";

?>

:

1.

2. 6

3.

4. 5

 

40.

$foo, :

$foo=1+"10 number of toys";

echo $foo;

:

1. number of toys

2. 11 number of toys

3. 11

4. 110 number of toys

 

41.





:


: 2016-11-02; !; : 875 |


:

:

- , .
==> ...

1863 - | 1652 -


© 2015-2024 lektsii.org - -

: 0.022 .