Wil Project Test

WillyDamtchou
1,524 views
undefined

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Welcome!

This PHP template lets you get started quickly with a simple working example in PHP. If this is your first contribution, you should have a look at the Getting Started guide.

The source code is on GitHub, please feel free to come up with proposals to improve it.

Hands-on Demo

Luke, how many stars there are in these galaxies?
<?php
function countAllStars($galaxies) {
$totalStars = 0;
foreach ($galaxies as $star) {
$totalStars = $star; //Hint: Change = to +=
}
return $totalStars;
}
?>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Wil, teste mon code ?
<?php
function countAllStars2($b) {
return $b;
}
?>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Check out the markdown file welcome.md to see how this exercise is injected into the template.

Template Resources

markdowns/welcome.md
What you are reading here is generated by this file. Tech.io uses the Markdown syntax to render text, media and to inject programming exercises.

php-project
A simple PHP project dedicated to run the programming exercise above. A project relies on a Docker image. You can find images on the Docker Hub or you can even build your own.

techio.yml
This mandatory file describes both the table of contents and the programming project(s). The file path should not be changed.

Visual and Interactive Content

Tech.io provides all the tools to embed visual and interactive content like a Web app or a Unix terminal. Please refer to the documentation to learn more about the viewer integrations.

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content