½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
css
mysql
html
jquery
������
image
mobile
API
slide
°Ô½ÃÆÇ
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 47 | Á¶È¸¼ö 687 | µî·ÏÀÏ 2001-08-06 14:58:52

´Ð³×ÀÓ

white

À̸ÞÀÏ

white@happycgi.com

Á¦¸ñ

[´äº¯] [PHP] ÇÔ¼ö¿¡ °üÇؼ­
³»¿ë
¾È³çÇϽʴϱî? HappyCGIÆÀ¿¡ whiteÀÔ´Ï´Ù.

><?
>function a($a, $b) {
>$temp = $a;
>$a = $b;
>$b = $temp;
>}
>a(1,3);
>echo($a."--".$b);
>?>
>ÀÌ ¼Ò½º¿¡¼­¿ä $a $b¿¡ °ªÀÌ Á¸Àç ÇÒ¼ö ÀÖ³ª¿ä?
>aÇÔ¼ö¿¡¼­ ¼±¾ðµÈ $a, $b, $temp¸¦
>ÇÔ¼ö¹Û¿¡ ¼­µµ ¾µ¼ö ÀÖ³ª¿ä?
>

function ¾È¿¡¼­ Á¤ÀÇ µÈ º¯¼ö´Â ¹Û¿¡¼­ Àû¿ëµÇÁö ¾Ê½À´Ï´Ù.
ÇÔ¼ö ¹Û¿¡¼­µµ µ¿ÀÏÇÏ°Ô Àû¿ëÇÒ·Á¸é
ÇÔ¼ö ³»¿¡¼­ º¯¼ö¸¦ global ·Î Á¤ÀÇÇØ ÁÖ¸é µË´Ï´Ù.
´ÔÀÇ ¼Ò½ºÀÇ °æ¿ì
function a($a, $b) {

global $temp,$a,$b;

$temp = $a;
$a = $b;
$b = $temp;
}
ÀÌ·¸°Ô ÇÏ½Ã¸é µÇ°Ú½À´Ï´Ù.

°¨»çÇÕ´Ï´Ù. ÁÁÀº ÇÏ·ç µÇ¼¼¿ä.^^
Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û Crazyboard¿ë ¸ÞÀÎ È­¸é °Ô½ÃÆÇ ±Ûº¸±â 2001-08-06 11:32:54
´ÙÀ½°Ô½Ã±Û [PHP] Mysql°ú ¿¬µ¿½Ã 2001-08-06 22:30:17