Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Codeasaurus Rex
    Join Date
    Jun 2008
    Location
    Redmond, WA
    Posts
    659
    Thanks
    31
    Thanked 100 Times in 94 Posts

    Easier way to echo in HTML? <?php= maybe?

    Hey all,

    Okay this should be a very simple question. The way I'm doing it right now works, but if there is a less text intesive method I'd love to hear it.

    Right now in my template files I perform:
    My fun in line text has <?php echo( $numCharacters ); ?> characters in it!!

    Is there a less text-intensive way to perform this? I could've sworn I saw somewhere once that you could do something to the tune of <?php=$variable> but when I try it it phails.

    Because I don't know how to describe what I'm looking for very well in keywords Google isn't being my friend on this one.

    Any knowledge? I'd love it.

    Thanks!
    Last edited by ShaneC; 03-24-2009 at 07:41 AM.
    Unless otherwise stated, any code posted is most likely untested and may contain syntax errors.
    My posts, comments, code, and suggestions reflect only my personal views.
    Web Portfolio and Code Snippets: http://shanechism.com

  • #2
    New Coder
    Join Date
    Jun 2008
    Location
    United Kingdom, England
    Posts
    11
    Thanks
    0
    Thanked 1 Time in 1 Post
    Code:
    <?=$NumCharacters;?>
    Is this what you meant?

  • Users who have thanked J_Coder for this post:

    ShaneC (03-24-2009)

  • #3
    Codeasaurus Rex
    Join Date
    Jun 2008
    Location
    Redmond, WA
    Posts
    659
    Thanks
    31
    Thanked 100 Times in 94 Posts
    Yup, that's it exactly! Thanks!
    Unless otherwise stated, any code posted is most likely untested and may contain syntax errors.
    My posts, comments, code, and suggestions reflect only my personal views.
    Web Portfolio and Code Snippets: http://shanechism.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •