What are the differences between VBA and PHP programming languages?

VBA (Visual Basic for Applications) is a programming language primarily used for automating tasks in Microsoft Office applications, while PHP is a general-purpose scripting language commonly used for web development. VBA is integrated with Microsoft Office products and is mainly used for creating macros and scripts within these applications. On the other hand, PHP is a server-side scripting language used to create dynamic web pages and interact with databases.

// Example PHP code snippet
<?php
echo "Hello, World!";
?>