NameSilo

Learn PHP From Here

SpaceshipSpaceship
Watch

faizanafzal

Account Closed
Impact
0
hi guys here you can learn php from the big php developers. I hope that php developers will give us tips about php :gl:
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
<?php
echo 'Hello World!';
?>
 
0
•••
<?='Hello World!'?>
 
0
•••
<?php
print('Hello World!');
?>
 
0
•••
Any other buddy can post any other php scripts
 
0
•••
<?php
$string = 'Hello World!';
echo $string;
?>
 
0
•••
I would always rather echo out than print out in PHP.

Oh yeah, my tip.

Money, enough for a book.
 
0
•••
faizanafzal said:
Any other buddy can post any other php scripts
Friend this way you will get no where. Why don't you ask some questions if you have and if possible other people can solve your query. :)

Then also if you get some knowledge out of this small code snippets then I will continue with the posts.

PHP:
<?php
if(!isset($submit))
{
echo "<center><form name='form' method='post' action='$PHP_SELF'>
Your Name: <input type='text' value='' name='name'><br>
<input type='submit' value='Submit' name='submit'>
</form></center>";
}
else
{
echo "<center>Hello $name</center>";
}
?>
 
0
•••
The Above being one of the most common uses of the if-else function, if the form has already been submitted, display the information, or else if it hasn't, display the form.
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back