view_stats - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of view_stats.php
- <?php
- $meta = 'a:1:{s:3:"Jan";a:1:{i:22;i:1;}}';
- $userViewMeta = unserialize($meta);
- for($i == 0; $i < 5; $i++){
- $getViewCount = $userViewMeta[date("M")]['d'];
- var_dump()
- $newValue = $getViewCount + 1;
- $countView = $serializedDate[date("M")][date('d')] + $newValue;
- array_push($userViewMeta[date("M")], $countView);
- }
- print_r($userViewMeta);
File Description
- view_stats
- PHP Code
- 23 Jan-2023
- 408 Bytes
You can Share it:
Latest PHP Pastes