Php Intern

Php Intern Interview Questions and Answers

Updated 15 Jul 2025
search-icon
2d ago

Q. Write HTML and CSS code to create a card.

Ans.

Create a card using HTML and CSS

  • Use <div> element to create the card container

  • Style the card using CSS properties like background-color, border, padding, and margin

  • Add content inside the card using <p> or <h> tags

  • Apply CSS styles to the content for better presentation

5d ago

Q. What is the difference between require and include in PHP?

Ans.

require and include are both used to include external PHP files, but require will cause a fatal error if the file is not found, while include will only produce a warning.

  • require is used when the included file is essential for the script to run

  • include is used when the included file is not essential for the script to run

  • require_once and include_once are used to prevent multiple inclusions of the same file

  • require will stop the script execution if the file is not found, while inc...read more

Php Intern Interview Questions and Answers for Freshers

illustration image
3d ago

Q. What is the difference between echo and print in PHP?

Ans.

Echo and print are both used to output text in PHP, but echo is faster and can output multiple values at once.

  • Echo is a language construct, while print is a function.

  • Echo can output multiple values separated by commas, while print can only output one value at a time.

  • Echo does not return a value, while print returns a value of 1.

  • Echo is faster than print because it does not need to return a value.

  • Example of echo: echo 'Hello World';

  • Example of print: print('Hello World');

1d ago

Q. How do you perform SQL joins across three tables?

Ans.

SQL joining for three tables involves using JOIN statements to combine data from multiple tables based on common columns.

  • Use JOIN statements to connect the tables based on common columns

  • Specify the columns to be selected from each table

  • Use aliases for table names to make the query more readable

  • Consider using different types of joins like INNER JOIN, LEFT JOIN, RIGHT JOIN, or FULL JOIN based on the requirement

Are these interview questions helpful?

Asked in Webrication

2d ago

Q. Write a program to print * using loops.

Ans.

Printing * using loops is a basic programming exercise.

  • Use nested loops to print * in a pattern

  • Use a for loop to print * in a straight line

  • Use a while loop to print * until a certain condition is met

Php Intern Jobs

Akshar Group Technologies logo
PHP Intern 0-2 years
Akshar Group Technologies
4.0
Ahmedabad
Netsterz Infotech Pvt Ltd logo
PHP Interns 0-3 years
Netsterz Infotech Pvt Ltd
4.1
Mohali
The Brihaspati Infotech Pvt. Ltd. logo
PHP Intern 0-1 years
The Brihaspati Infotech Pvt. Ltd.
4.5
Mohali

Interview Experiences of Popular Companies

SentientGeeks Logo
4.4
 • 16 Interviews
View all
Interview Tips & Stories
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Php Intern Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits