php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46983 Overhaul PHP code so it's more like the English language
Submitted: 2008-12-31 03:33 UTC Modified: 2008-12-31 09:39 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: ryan14 at mail dot com Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 5.3.0alpha3 OS: Windows/Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ryan14 at mail dot com
New email:
PHP Version: OS:

 

 [2008-12-31 03:33 UTC] ryan14 at mail dot com
Description:
------------
Currently PHP code is very hard to understand for beginners because it is nothing like the English language. PHP is currently like learning another language.

For example, to output some text onto a webpage, PHP uses this code:

<?php
echo "Hello World";
?>

Now for a person who doesn't know PHP, they are wondering what "echo" means.
 So to make this PHP code more like the English language we could use the word "display" so the code would look like this:

<?php
display "Hello World";
?>

So any person who has never seen PHP code before would know it means to display the text 'hello world'.

Another example is the "if" condition which means the code to be executed if condition is true. Instead of using "if", why not use the word "true".

So all of the PHP code should get an overhaul and make it more like the English language.


Patches

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 11:01:30 2024 UTC