Solved

Echo table inside case/ break in php?

Posted on 2011-02-20
2
362 Views
Last Modified: 2012-08-14
Hello experts;

Please let me know that how can i echo a table inside "case/break" in php like;

case 'x':

echo table

break;


thanks
0
Comment
Question by:MOSTAGHASSI
2 Comments
 
LVL 15

Accepted Solution

by:
ludofulop earned 250 total points
ID: 34938684
case 'x':

echo '<table><tr><td>one</td><td>two</td></tr></table>';

break;

??
0
 

Author Closing Comment

by:MOSTAGHASSI
ID: 34938748
thanks,sometimes some solutions are so easy that we don't think,i thought that for each tag i must echo.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question