Changeset 743 for trunk/lib/Utilities.inc.php
- Timestamp:
- Apr 23, 2021 11:00:26 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Utilities.inc.php
r742 r743 38 38 define('SC_DUMP_VAR_DUMP', 1); 39 39 define('SC_DUMP_VAR_EXPORT', 2); 40 define('SC_DUMP_JSON', 3); 40 41 function dump($var, $display=false, $dump_method=SC_DUMP_PRINT_R, $file='', $line='') 41 42 { … … 73 74 case SC_DUMP_VAR_EXPORT: 74 75 var_export($var); 76 break; 77 78 case SC_DUMP_JSON: 79 json_encode($var, JSON_PRETTY_PRINT); 75 80 break; 76 81 } … … 1543 1548 * 1544 1549 * @access public 1545 * @param string $url URL to a file. 1546 * @return bool True if the resource exists, false otherwise. 1550 * @param string $url URL to a file. 1551 * @param int $timeout The maximum number of seconds to allow the HTTP query to execute. 1552 * @return bool True if the resource exists, false otherwise. 1547 1553 * @author Quinn Comendant <quinn@strangecode.com> 1548 1554 * @version 2.0
Note: See TracChangeset
for help on using the changeset viewer.