Skip to content

Instantly share code, notes, and snippets.

@mostafasoufi

mostafasoufi/print.php

Last active Dec 13, 2019
Embed
What would you like to do?
Print my name with foreach in PHP
<?php
// TASK 1 - print out your name with one of php loops
foreach (str_split('Mostafa') as $char) {
echo $char;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment