Like syntax of Java, PHP, JavaScript, and many other languages are mainly based on C language. Beginning with C programming: Structure of a C program Many later languages have borrowed syntax/features directly or indirectly from C language. C++ is nearly a superset of C language (There are few programs that may compile in C, but not in C++).