{"id":15321853,"url":"https://github.com/codehakase/php-exam","last_synced_at":"2025-06-25T13:03:52.808Z","repository":{"id":86392150,"uuid":"76464040","full_name":"codehakase/php-exam","owner":"codehakase","description":"A PHP exam with questions from beginner to expert level curated by @codehakase","archived":false,"fork":false,"pushed_at":"2017-02-23T18:11:23.000Z","size":6,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-25T13:03:04.884Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codehakase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-12-14T13:55:08.000Z","updated_at":"2023-01-16T21:27:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7d1e510-1863-45b6-b2cc-15a7d2d6039c","html_url":"https://github.com/codehakase/php-exam","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/codehakase/php-exam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehakase%2Fphp-exam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehakase%2Fphp-exam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehakase%2Fphp-exam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehakase%2Fphp-exam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codehakase","download_url":"https://codeload.github.com/codehakase/php-exam/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehakase%2Fphp-exam/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261879271,"owners_count":23223736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T09:13:17.027Z","updated_at":"2025-06-25T13:03:52.574Z","avatar_url":"https://github.com/codehakase.png","language":"PHP","readme":"![](https://img.shields.io/badge/codehakase-approved-brightgreen.svg)\n\n\n\n# php-exam\n\u003eA PHP exam with questions from beginner to expert level curated by [@codehakase](https://twitter.com/iamfrankcute)\n### generate from [here](https://whispering-savannah-89113.herokuapp.com/)\n\n\n* What is PHP?\n* What does the initials of PHP stand for?\n* Which programming language does PHP resemble to?\n* What does PEAR stands for?\n* What is the current PHP version?\n* What is a variable?\n* How do you define a variable in PHP?\n* How do you execute a PHP script from the command line?\n* How to run the interactive PHP shell from the command line interface?\n* What are the correct and the most two common way to start and finish a PHP block of code?\n* How can i display the output directly to the browser?\n* What is the main difference between PHP 5 and PHP 7?\n* Is multiple inheritance supported in PHP?\n* What is the meaning of a final class and a final method?\n* How is comparison of objects done in PHP7?\n* How can PHP and HTML interact?\n* What type of operation is needed when passing values through a form or an URL?\n* How can PHP and Javascript interact?\n* What is needed to be able to use image function?\n* What is the use of the function ‘imagetypes()’?\n* What are the functions to be used to get the image’s properties (size, width and height)?\n* How failures in execution are handled with include() and require() functions?\n* What is the main difference between require() and require_once()?\n* How can I display text with a PHP script?\n* How can i display information of a variable and readable by human with PHP?\n* How is it possible to set an infinite execution time for PHP script?\n* What does the PHP error ‘Parse error in PHP – unexpected T_variable at line x’ means?\n* What should i do to be able to export data into an Excel file?\n* What is the function file_get_contents() usefull for?\n* How can i connect to a MySQL database from a PHP script?\n* How the result set of MySQL be handled in PHP (PDO or mysqli)?\n* How is it possible to know the number of rows returned in result set?\n* Which function gives us the number of affected entries by a query?\n* In PDO, What is the difference between $pdo-\u003efetch(PDO::FETCH_ASSOC) and $pdo-\u003efetchAll()?\n* How can i access the data sent through the URL with the GET method?\n* How can i access the data sent through the URL with the POST method?\n* How can i check the value of a given variable is a number?\n* How can i check the value of a given variable is alphanumeric?\n* How do I check if a given variable is empty?\n* What does the unlink() function means?\n* What does the unset() function means?\n* How do I escape data before storing it into the database?\n* How is it possible to remove escape characters from a string?\n* How can i automatically escape incoming data?\n* What does the function get_magic_quotes_gpc() means?\n* Is it possible to remove the HTML tags from data?\n* What is the static variable in function useful for?\n* How can i define a variable accessible in functions of a PHP script?\n* How is it possible to return a value from a function?\n* What is the most convenient hashing method to be used to hash passwords?\n* Which cryptographic extension provide generation and verification of digital signatures?\n* How can i define a Constant in a PHP script?\n* How can you pass a variable by reference?\n* Will a comparison of an integer 12 and a string “13” work in PHP?\n* How is it possible to cast types in PHP?\n* When is a conditional statement ended with an endif?\n* How is the ternary conditional operator used in PHP?\n* What is the function func_num_args() used for?\n* If the variable $var1 is set to 10 and the $var2 is set to the character var1, what’s the value of $$var2?\n* What does accessing a class via :: means?\n* In PHP, objects are they passed by value or by reference?\n* Are Parent constructors called implicitly inside a class constructor?\n* What’s the difference between __sleep and __wakeup?\n* What is a session?\n* How do i initiate a session in PHP?\n* How is it possible to propagate a session id?\n* What is the meaning of a Persistent Cookie?\n* What is the difference between session_unregister() and session_unset()?\n* What does $GLOBALS means?\n* What does $_SERVER means?\n* What does $_FILES means?\n* What is the difference between $_FILES[‘userfile’][‘name’] and $_FILES[‘userfile’][‘tmp_name’]?\n* How can i get the error when there is a problem to upload a file?\n* What does $_ENV means?\n* What does $_COOKIE means?\n* What does the scope of variables means?\n* What the difference between the ‘BITWISE AND’ operator and the ‘LOGICAL AND’ operator?\n* What are the two main string operators?\n* What does the array operator ‘===’ means?\n* What is the differences between $a != $b and $a !== $b?\n* How can i determine whether a PHP variable is an instantiated object of a certain class?\n* What is the goto statement useful for?\n* What is the difference between  Exception::getMessage and Exception::getLine ?\n* What does the expression Exception::__toString means?\n* How is it possible to parse a configuration file?\n* How can i determine whether a variable is set?\n* What is the difference between the functions strstr() and stristr()?\n* What is the difference between for and foreach?\n\n\n## Credits\n\n- [CareerGuru99](http://career.guru99.com/top-100-php-interview-questions-answers/)\n- [Francis Sunday](https://twitter.com/iamfrankcute)\n\n\n\n## Contributing\nPlease feel free to fork this package and contribute by submitting a pull request to add to the list of questions or to make some corrections to them.\n\n\n## Feel like thanking me?\n\nWhy not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or Facebook? Spread the word!\n\nand also, [follow me on twitter](https://twitter.com/iamfrankcute)!\n\nThanks!\nFrancis Sunday.\n\n\n## License\nThe source code is open-sourced software licensed under the [MIT license](LICENSE.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodehakase%2Fphp-exam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodehakase%2Fphp-exam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodehakase%2Fphp-exam/lists"}