answersLogoWhite

0

Which function is used to retrive the part of the string?

Updated: 8/18/2019
User Avatar

Wiki User

13y ago

Best Answer

If a string features a separator (e.g. a dot or a comma), use PHP's explode() function to get an array with the two parts:

$string = "hello,joe"

$array = explode(",", $string);

$array[0] will be "hello"

$array[1] will be "joe"

If not, you may use substr() to return a certain length of a string

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which function is used to retrive the part of the string?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which method is used to retrive an initialitation parameters from a servlet context?

ServletContext sc=getServletContext(); String s=sc.getInitParameter();


What function are used for string length in visual basic?

string length is a function use to check the lenght of a string i.e number of alphabets in a word or sentence.


What is the puporse of using Val function in Visual basic 6.0?

Val() function is used in Visual Basic 6.0 to convert a string to a numeric value (such as integer, double etc.) or to extract a numeric value out of a string, as illustrated below.Val function as used to convert a string to a numeric valuefor example, let str be a string,Dim str as stringDim int as integerstr="09090"int=val(str)gives int = 9090also, used to extract the numeric part out of a following string,ie. a=val("98ASR_tyui") would give a=98however,b=val("The89")would give b=0 as there is no numeric value preceding the string.


What is a decryption of the hash string 108933322ed670db49b0141d10f6dbbe?

To decode a hash string you first need to know what hash function was used to encode it.


What is used to locate a string in excel?

You can use the find command of the FIND function.


What is th function of the charindex?

The CHARINDEX function in SQL is used to find the position of a specific character or substring within a string. It returns the starting position of the substring or character within the given string.


What is cursors in oracle?

cursor is used to retrive multiple rows at a time


Why printf is used instead of print in c?

The printf() function prints a formatted string.


What part of speech is the word function?

Function can be a noun and a verb. Noun: What something is used for. Verb: To have a function.


Fats can be used for energy?

Yes. That is part of their function.


How does one use the perl split function?

The Perl split function is used to split a string into smaller section. One can find a guide on how to use a Perl split function on various websites including Perlmeme.


What is the z function?

it is used in complex function and used for studying the Riemann zeta-function along the important line where the real part of the argument is one-half.