PHP is an object-oriented programming language that is commonly used as part of web site programming on the server-side. Flash is a client-side program that is typically used to create engaging graphical user interfaces for web sites. They are two different tools that are intended for different applications; learning flash will be harder because the development platform is costly and there are less sources for support and help. On the other hand, php is free and there are many more sources of free support.