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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
49 - 20 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 06:01:34 2024 UTC