What php string function should i use?

  • Thread starter Thread starter yeoys2003
  • Start date Start date
Y

yeoys2003

Guest
Original text: "Hello World"

==CASE 1==
Turning extra alphabets after position 7 to "..."
output: "Hello W..."

==CASE 2==
Showing WORDS that comes before position 7.
output: "Hello..."

Could someone tell me what functions do i use for both cases?
 
Back
Top