<?php $textData = <<<_TEXT 192.168.0.1 192.168.0.2 192.168.0.3 192.168.0.4 192.168.0.5 192.168.0.6 192.168.0.7 192.168.0.8 192.168.0.9 _TEXT; $json = json_encode(explode(PHP_EOL, $textData), JSON_FORCE_OBJECT | JSON_PRETTY_PRINT); echo $json;
You have javascript disabled. You will not be able to edit any code.