Call
whatsapp
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
Cisco Training in Trivandrum, Trinity Technologies

No.1 Training Institute in Kerala

PHP QUESTIONS : PART 27

Select the correct syntax for the function that is used to pad a string to new length

str_pad(string,length,”pad string”,pad type); 

 strpad(string, length, pad string); 

str.pad(pad string);

SHOW ANSWER

Name the string function that is used to repeat a string a specified number of time

str_repeat( )

 strrepeat( ) 

 str.repeat( )

SHOW ANSWER

Which function is used to repeat a string a specified number of times ?

str_repeat( ) 

 strrepeat( )

 str.repeat( )

SHOW ANSWER

The string function that is used to repeat a string a specified number of times is :

str_repeat( )

 strrepeat( ) 

 str.repeat( )

SHOW ANSWER

__________ is the function that is used to repeat a string a specified number of times

 str_repeat( ) 

 strrepeat( )

 str.repeat( )

SHOW ANSWER

What will be the output : $a=” Hello World“ $b=str_pad($a,15,”%”); echo $b;

Hello World%%%% 

 Hello World%%% 

 Hello %World

SHOW ANSWER

What will be the output : echo str_repeat(“hai”,5);

haihaihaihaihai 

 hai 5 

 hai5hai5hai5hai5hai5

SHOW ANSWER

Which function is used to randomly shuffle all the characters of a string ?

str_shuffle( )

 shufflestr( ) 

 strshuffle( )

SHOW ANSWER

Name the function that is used to randomly shuffle all the characters of a string

str_shuffle( ) 

 shufflestr( )

 strshuffle( )

SHOW ANSWER

The function that is used to randomly shuffle all the characters of a string is

 str_shuffle( ) 

 shufflestr( ) 

 strshuffle( )

SHOW ANSWER

_________ is the function that is used to randomly shuffle all the characters of a string

 str_shuffle( ) 

 shuflestr( ) 

 strshuffle( )

SHOW ANSWER

Which function is used to return the number of characters in a string before the specified character ?

strcspn( ) 

 strcmp( ) 

 strcpn( )

SHOW ANSWER

Name the function that is used to return the number of characters in a string before the specified charater

strcspn( )

strcmp( ) 

strcpn( )

SHOW ANSWER
BACK | NEXT
TRINITY SOFTWARE SOLUTIONS,IInd floor, Radheyam Towers, Gandhari Amman Kovil Road, Pulimood, Trivandrum - 1
0471-2334855 | 2335855 | 9447387064 | 9847003556 info@trinitytechnology.in