Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8493245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:57:05+00:00 2026-06-10T22:57:05+00:00

I have been taught about embedding PHP inside HTML OR HTML inside PHP. I

  • 0

I have been taught about embedding PHP inside HTML OR HTML inside PHP. I would like to start writing some apps in PHP and would like to know from you guys which one of the options to use.

At the moment i don’t know which option to use so i decided to ask for some advice. It may be that one is better than the other in general.

I am about to develop real-world applications so i want to know which one to use. May be it may affect my future colleagues etc…

It may also be that the open source community and PHP programmers in general have a tradition of using one option.

Which one is mostly used in real-world applications?

Just need some advice.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:57:07+00:00Added an answer on June 10, 2026 at 10:57 pm

    My advice is to stick a bit with vanilla PHP [vars, operators, loops, conditions, core functions], then pick a framework [Symfony, Zend Framework, YII, Codeigniter]and follow its conventions and principles.

    About PHP vs HTML, the idea is to keep business and presentational logic separated, i.e. you should gather all the stuff you need to display in a piece of your code, then in another section you write the HTML using as little PHP as you can [just for echoing values or performing loops for table population, etc.].

    Then you’ll get into topic such as templates, Model-View-Controller architecture…but don’t go further now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Introduction to the problem I have been taught about OO Analysis and Design through
Hi I've been making iOS apps for about 3 1/2 years, I'm self taught
I apologize if I seem unknowledgable. I have only been writing T-SQL for about
Inspired by the discussion in this question . We have all been taught that
I have been in web programming for 2 years (Self taught - a biology
I've taught myself Obj-C, and have been self-teaching Cocoa, but adding Core Data to
Have been looking on some tutorials for drawing canvas using SurfaceView, but the only
Have been reading about async and tasks and been attempting to convert the CopyFileEx
I have been taught at school to use database with integer IDs, and I
I'm a physicist, and have been learning some programming, and have come across a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.