Dateiansicht:
Datei: | Projekte -> PHP:ReversesExplode -> test_rExplode.php |
---|---|
md5: | 896c29689f30d75ac41bb1f378c0bb1e |
sha1: | c155009f15abce753ca554ce4b724f357809b0f8 |
Download-Link: | Download |
- <?php
- include_once 'rExplode.php';
- ## unit-test:
- ### Return: Array
- ### (
- ### [0] => org
- ### [1] => fastix
- ### [2] => www
- ### )
- ### Return: Array
- ### (
- ### [0] => fastix.org
- ### [1] => www
- ### )
- ### Return: Array
- ### (
- ### [0] => org
- ### [1] => www.fastix
- ### )
- ## using example
- echo 'hostname: ', $host, PHP_EOL;
- echo 'domain : ', $domain, PHP_EOL;
- ## hostname: www
- ## domain : fastix.org