PHP_EOL

The WooCommerce Pay to Upload PHP EOL constant.

Value (string)

strtoupper(substr(PHP_OS, 0, 3) == "WIN") ? "\r\n" : "\n" 

Usage

  1. if ( defined( 'PHP_EOL' ) ) { 
  2.  
  3. // grab the value 
  4. $value = constant( 'PHP_EOL' ); 
  5.  
  6. if ( !empty( $value ) ) { 
  7. // go forth and prosper... 
  8.  

Defined (1)

The constant is defined in the following location(s).

/classes/class-wc-pay-to-upload.php  
  1. if(!defined("PHP_EOL")) {define("PHP_EOL", strtoupper(substr(PHP_OS, 0, 3) == "WIN") ? "\r\n" : "\n");}