PHP: Traversing strings
Instructions
Loading...
Your exercise will be checked with these tests:
<?php
namespace HexletBasics\Loops\IterationOverString;
use PHPUnit\Framework\TestCase;
class SolutionTest extends TestCase
{
public function test()
{
require 'index.php';
$str = 'Hexlet';
$expected = "t\ne\nl\nx\ne\nH\n";
$this->expectOutputString($expected);
printReversedWordBySymbol($str);
}
}
Teacher's solution will be available in:
20:00
