Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>swap() - swap the contents of two variables</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     swap() - swap the contents of two variables
  Usage:    swap(@<var1>,@<var2>)
  Params:   variable <var1>, <var2> - variables to swap
  Returns:  nothing, but contents of <var1> and <var2> are swapped

 ---------------------------------- Example ---------------------------------

                 m1 = "First"
                 m2 = "Second"

                 swap(@m1,@m2)

                 ? m1      && prints "Second"
                 ? m2      && prints "First"

  Note:     You must always use the @ sign in front of both variables
            for swap to work.


See Also: ccast()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson