Jump to content

PHP: Loop alphabetically like excel sheet.


lilmer

Recommended Posts

I have a code here:

 

$length = 90;

  for ($i=65; $i<=$lenght; $i++){
   $out .= "<th>".chr($i)."</th>";
   }

 

It output from A-Z;

 

but when I add value on $length; the next output is opening bracket " [ ".

 

What I want is A -Z AA, AB etc. like spreadsheet do.

 

 

or maybe someone can give me resources on how to create Google like Spreadsheet using PHP js. thanks!

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.