Jump to content

Changing page direction by php


saeed_violinist

Recommended Posts

Dear friends,

Is there a way to set the direction of page from left to right (ltr) to right to left? I mean something instead of using :

[code]
<html dir=rtl>
<body>
<php
blah blah blah
?>
</body>
</html>
[/code]

I mean I want to start my pages directly by <php and not use <html> at any cost! and have a right to left page...

thanks
Link to comment
https://forums.phpfreaks.com/topic/28267-changing-page-direction-by-php/
Share on other sites

[quote]I mean I want to start my pages directly by <php and not use <html> at any cost![/quote]

If your making webpages you need html. It is THE markup language of the web, php just outputs strings, and yes, they can be html.

[code]
<?php

  echo "
<html dir=rtl>
<body>
blah blah blah
</body>
</html>
";
?>
[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.