Tools
- Sandbox
- Paste Code
- Snippets
- Generators
- Checks
- Convertors
questao-26-informatica - PHP Online
Form of PHP Sandbox
Share
Do you find this tool useful? Then share it with your friends or colleagues. This will help us to make our free web tools better.
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Save
Information about embedding
In order to embed this content into your website or blog, simply copy and paste one of the codes provided below.
1. JavaScript Embedding (shows full code, full height depending on amount of lines in paste)
<script src="https://wtools.io/code/embed-js/bU5I"></script>
2. Iframe Embedding (you can set the frame height by adding the CSS value 'height:100px;' for example)
<iframe src="https://wtools.io/code/embed-iframe/bU5I" style="border:none;width:100%"></iframe>
Full code of questao-26-informatica.php
- <?php
- function verificaPar($numero) {
- if ($numero % 2 == 0) {
- return true;
- }
- return false;
- }
- echo verificaPar(3) ? "Par" : "Ímpar ";
- ?>