Neal Grosskopf Dot Com A NG Designs Site

Toolbar

  • Skip To
    • Menu
    • Content
  • Validate
    • HTML
    • CSS
    • WAI
  • Font Size
    • Small
    • Medium
    • Large
    • Extra Large
  • Account
    • Create Account
    • Login

Interact

Navigation

  • Home
  • Interact
    • Blog
    • Message Board
    • Open Links
    • Open Videos
    • Photo Gallery
    • Polls
    • Reviews
    • Geek Speak
  • Designs
    • View All Designs
    • Professional
    • Corporate
    • Templates
    • Personal
    • Club
    • NG Designs
    • Web Guides
  • Files
    • Artwork
    • Wallpapers
    • My File Downloads
  • Extras
    • Bookmarklets
    • The Magic 8-Ball
    • Monster.com RSS Feed Generator
Hey there, this site is pretty old now. I've decided to leave it up as I put a lot of work into it and would hate to see it disappear.

View Link Entry

  • Actions
    • New Open Link
    • View All
    • Search
    • Bookmarklet
    • Subscribe to RSS Feed
Web
( Add Link )
View External Link ASP/PHP Cross-Reference
2/25/2009

ASP/PHP Cross-Reference A list of fairly common actions with both the ASP and PHP equivalents listed. Good resource if you are familiar with one of the languages, but can't remember the equivalent function in the other.

By: Chris Retlich

Tags: asp, php, programming ( Add Tag )


Replies:

  • Neal Grosskopf
    Neal Grosskopf
    #1

    Wed. February 25 2009, 3:30:57 PM

    That's pretty awesome. Would be great for somebody like myself considering learning PHP but unaware of all the small (or large) differences between the two languages. If only 1and1 offered dual hosting options I'd be learning PHP already.

  • Neal Grosskopf
    Neal Grosskopf
    #2

    Wed. February 25 2009, 6:45:17 PM

    The $variable naming could take some getting used to. Otherwise it reminds me a lot of JavaScript.

  • Chris Retlich
    Chris Retlich
    #3

    Thu. February 26 2009, 8:38:51 AM

    Yeah, using the dollar sign takes a little extra effort sometimes, but allows a few neat features, for example, directly injecting a variable into a string instead of using string concatenation, e.g. echo "you are visitor $num"; is equivalent to echo 'you are visitor '.$num; (note the different quotes used - the second example would work with single or double, the first example only works with double quotes).


    Also, it allows you to use variable variables - a wacky concept where you can reference a named variable by the value of a different one, e.g. $hello="Hi";$blah='hello';echo $$blah; would return "Hi" - because $blah is "hello", and thus the other $ then says look at the value of the variable named "hello".


    The $variable (or sometimes variable$ in other languages) thing reminds me of QBASIC, but I think there are a handful of other languages that do that too, such as RAPIDQ.

  • Chris Retlich
    Chris Retlich
    #4

    Thu. February 26 2009, 8:39:39 AM

    Interesting, my <code> tags got messed up, but seemed to look okay in the preview.


Reply To This Post:
B U I Link Font Color Edit Preview ?
Characters: 0 Textbox Size: [+] [-]
   

Font Size:

  • A
  • A
  • A
  • A

Search:

What's Popular:

  • 8,435,871 Views
    How To Serve XHTML to Internet Explorer 6 And 7 as XML Using Content Negotiation
  • 282,870 Views
    Create a JQuery Content Slider Using Pure CSS
  • 252,412 Views
    CSS Browser Hacks For Firefox, Opera, Safari & Internet Explorer
  • 144,426 Views
    Converting A Site From Classic ASP To PHP: Some Things To Consider
 

Site Links

Site

  • About
  • Contact Me
  • Site Map
  • Site Search

Interact

  • Blog
  • Geek Speak
  • Message Board
  • Open Links
  • Open Videos
  • Photo Gallery
  • Polls
  • Reviews

Random Stuff

  • Hosting by Cloudways
  • © Copyright 2005 - 2025
  • Modified: Saturday, February 22, 2025
  • Load Time: 0.01 Seconds.
    Total Queries: 7

Site Coded And Designed By Neal Grosskopf Using No Crappy CMS Or Themes