Jump to content
php.lv forumi

PHP Print


supernal

Recommended Posts

Kas ir echo() un tad print()? Nu pamati... pamati ir jāzin!!!

 

echo '<img src="link-to-image.png" alt="" />';

 

P.S. Skatlis '1' tiek izvadīts, jo echo() izvada to, ko esi tai licis izvadīt - sākumā print(), tad stringu. Print() atgriež skaitli.

Link to comment
Share on other sites

Kas ir echo() un tad print()? Nu pamati... pamati ir jāzin!!!

 

echo '<img src="link-to-image.png" alt="" />';

 

P.S. Skatlis '1' tiek izvadīts, jo echo() izvada to, ko esi tai licis izvadīt - sākumā print(), tad stringu. Print() atgriež skaitli.

 

Uii, no sākuma tā mēģināju, bet img nebiju ielicis iekš ' ', negāja, tapēc meklēju, kā vēl to varētu izdarīt. Muļķis.

 

Paldies!

Edited by supernal
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...