Re: Display break every specific number

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I hope its in a loop right ? 

Anyway you have a variable say $count ... 

check if $count mod 4 is zero . Then echo <br /> .. ie all ;)

 Hari K T

http://harikt.com/





________________________________
From: Sovichea SOU <svch_sou@xxxxxxxxxxx>
To: php-objects@xxxxxxxxxxxxxxx
Sent: Fri, 19 March, 2010 1:35:52 PM
Subject:  Display break every specific number

  
Hi,

I want to display a break (<br>) every 4 numbers of records.
For example:
001 002 003 004<br>
005 006 007 008<br>
009 010 011 012<br>

How to do that?

Thanks.

[Non-text portions of this message have been removed]


 


      Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux