Jump to content

[SOLVED] limit statement to certain number of breaks


iversonm

Recommended Posts

ok so again with these messed up questions

 

so lets say

$state="This is the first line

this is the second line

this is the third line

this is the forth line

this is the fifth line";

 

lets say i only want to echo the first three lines of $state

i have no idea were to even start

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.