Home > Software engineering >  What is "NULL" represents in $worksheet->fromArray( $criteria, NULL, 'A1' )?
What is "NULL" represents in $worksheet->fromArray( $criteria, NULL, 'A1' )?

Time:06-21

Can anyone please explain what "NULL" represents and why it mention NULL and what other values or types we can mention instead of null in following line of code $worksheet->fromArray( $criteria, NULL, 'A1' );

I searched multiple articles. but there is no explanantion about this line. Please help to understand this line. Thanks in advance

CodePudding user response:

Here is the documentation: https://phpoffice.github.io/PhpSpreadsheet/classes/PhpOffice-PhpSpreadsheet-Worksheet-Worksheet.html#method_fromArray

$nullValue : mixed = null
Value in source array that stands for blank cell

  • Related