/var/www/vhosts/bsbdokum.com.tr/httpdocs/app/Addition/simplexlsx-master/examples
NameSizeModeActions
01-basic_usage.php2940644editdlrm
02-rows_and_rowsEx.php4660644editdlrm
03-sheets.php11650644editdlrm
04-upload_and_convert_to_html.php8990644editdlrm
books.xlsx91860644editdlrm
countries_and_population.xlsx193170644editdlrm
Edit: /var/www/vhosts/bsbdokum.com.tr/httpdocs/app/Addition/simplexlsx-master/examples/03-sheets.php (1165B)
Read several sheets'; if ( $xlsx = SimpleXLSX::parse('countries_and_population.xlsx')) { echo '
'.print_r( $xlsx->sheetNames(), true ).'
'; echo '
'; // output worsheet 1 list( $num_cols, $num_rows ) = $xlsx->dimension(); echo '

'.$xlsx->sheetName(0).'

'; echo ''; foreach ( $xlsx->rows( 1 ) as $r ) { echo ''; for ( $i = 0; $i < $num_cols; $i ++ ) { echo ''; } echo ''; } echo '
' . ( ! empty( $r[ $i ] ) ? $r[ $i ] : ' ' ) . '
'; echo '
'; // output worsheet 2 list( $num_cols, $num_rows ) = $xlsx->dimension( 2 ); echo '

'.$xlsx->sheetName(1).'

'; echo ''; foreach ( $xlsx->rows( 2 ) as $r ) { echo ''; for ( $i = 0; $i < $num_cols; $i ++ ) { echo ''; } echo ''; } echo '
' . ( ! empty( $r[ $i ] ) ? $r[ $i ] : ' ' ) . '
'; echo '
'; } else { echo SimpleXLSX::parseError(); }