When comparing APL vs PHP, the Slant community recommends PHP for most people. In the question“What is the best programming language to learn first?” PHP is ranked 32nd while APL is ranked 46th. The most important reason people chose PHP is:
According to the [2015 Stack Overflow Developer Survey](http://stackoverflow.com/research/developer-survey-2015#tech) (26,086 people surveyed), PHP was the 5th most popular/used language at 29.7%.
Ranked in these QuestionsQuestion Ranking
No complicated loop processing to apply a function to a array of arrays. Functions are defined in a way that they will typically operate the same way on any number of array dimensions. This, along with the clear syntax, leads to very compact code that can be comprehended in a single line, rather than spread out over many pages.
Pro Clear syntax
There is no operator precedence to memorize, as everything is evaluated right-to-left. E.g., in APL 3*10+3 = 39. You do have to type in some otherwise unusual characters, such as ↓ and ∊, but those are easy enough to pick up -- and they have the advantage of being easily remembered once understood, as they often have some connection to common mathematical symbols.
You can seriously implement Conway's Game of Life in one line. There's a reason we do algebra with symbols instead of story problems. APL is good as a language of thought, since you can hold entire algorithms in your head at once.
Pro One of the most common languages
According to the 2015 Stack Overflow Developer Survey (26,086 people surveyed), PHP was the 5th most popular/used language at 29.7%.
Pro Lots of tutorials online
Pro Used by most common CMS platforms
Many clients are looking for an easy-to-update web site that's flexible and free. Drupal and Wordpress fill those needs very well.
Pro Most prominent language for web applications
Part of the de facto standard web application stack.
Pro Great third-party package manager
PHP standard library is somewhat subpar, but if you need plugins, language features, composer has them all( you can even puzzle together a custom framework from composer).
Pro Lots of PHP frameworks available which help with development
PHP people love frameworks, and with frameworks such as Laravel, you can build a web app or API really fast (Facades, ORMs, scaffolding etc.)
Since 7.x was released, PHP has become a pretty fast language.
APL symbols are only used by APL. You have to learn how to type them and how to read them. It doesn't work well with standard text editors , version control systems, search engines, or web forums. This makes it difficult for a beginner to find help.
Con Does not prepare you for most of the practical programming languages of today
While APL does have a strong use in certain areas (mostly mathematically intensive applications), it is a Domain-Specific language. That along with the fact that its syntax is not similar to C-like or other common syntax forms means that learning APL and expecting it to help you with learning other languages is like learning Calculus and expecting it to make English easier.
Con Write-only language
Maybe you can learn to read it with experience. And an interpreter. Reading APL is like reading a college math book. You might have to study a single line for fifteen minutes to understand what it's doing. And that's if you're an expert at APL. This also applies if you wrote it yourself more than a month ago. hopefully you have comments.
Con Flawless diamond
You can't extend the language itself. (J does this better.) Of course, what's built in is quite powerful.
Con Poorly designed language
Despite its widespread use, PHP is generally looked upon poorly from a design point of view. The consistency of function names and function argument order, lazily and borderline non-functional implementation of object oriented programming, can only receive requests via POST methods, slow version adoption (the PHP you learn right now may not work on every webserver you'll work on), and a focus on "hacking things together" rather than "doing it right". These are all very common complaints when it comes to working with PHP. While not a bad language to learn, PHP is not at all a good language to learn first, as it will probably teach bad habits.
Con Immense catalog of insecure frameworks
The most serious security problems in websites on the web today are almost universally found in popular PHP frameworks, CMS platforms, libraries and code samples, almost all stemming from poor language design, bad tutorials and awful resources.
Con Most tutorials are out of date
A lot of very bad tutorials are still widely circulated among beginners, and these tutorials teach very poor programming practices.
Con Most resources are poorly-written
Few resources exemplify the "correct" or secure use of features.