if($a = $b)
if($a = $b){ } 이것은 아래와 동일 $a = $b; if($a){ }
- PHP
- · 2010. 5. 10.
htmlcode = "test"; var ptn = new RegExp("]*>","gi"); //혹은 아래 처럼 정규표현식 만듬 var ptn = /]*>/gi; htmlcode = htmlcode.replace(ptn,"");
기본 인스턴스 생성법 NSString *nameString = [[NSString alloc] initWithString:@"Hello World"]; NSString : 객체 형 nameString : 인스턴스명 NSString alloc : 객체명, 메모리 initWithString : 객체메소드 @"~~~" : 객체메소드의 파라메터(nameString 의 값) 메소드 호출 instance = [ObjectName methodName parameter:value parameter:value] 메소드 실행후 돌려 받는 값을 따로 지정 하고 싶을때(객체생성시 동일) hashValue = [[sorceStr subStringFrom:2 to:5] hash] sorceStr의 2~5까지 문자를 구해서 has..
------------------------------------------------------------------ DBDesigner4와 Mysql5 연동 ------------------------------------------------------------------ DBDesigner4는 오래전에 개발되고 더이상 업그레이드가 없는 제품이라 업그레이드된 MySql의 DLL을 반영하지 않아서 생기는 현상이었다. 1. 2개의 DLL 파일을 교체하고 2. MySQL관련 커넥션을 만들때 디폴트로 읽어오는 설정값을 바꾼다. 1. 2개의 DLL 파일 교체 - dbxopenmysql5_dll.zip -> password 관련 에러 발생 : 다운로드 경로( http://www.justsoftwaresolu..
/* * jQuery outerHTML * * Copyright (c) 2008 Ca-Phun Ung * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://yelotofu.com/labs/jquery/snippets/outerhtml/ * * outerHTML is based on the outerHTML work done by Brandon Aaron * But adds the ability to replace an element. */ (function($) { $.fn.outerHTML = function(s) { return (s) ? this.before(s).remove() ..
@http://blog.daum.net/hopark/15976021 싱글 유저 모드로 부팅하기 : 맥 오에스 텐을 재시동하게 하고, 화면이 검게 변화면 command+s 키를 동시에 누르고 있으면, 평소에 기본적으로 시동되는 멀티 유저 모드가 아닌 싱글 유저 모드로 부팅됩니다. 검 은 바탕에 흰 글씨로 된 텍스트 시동 화면이 나오면서 잠시 후 프롬프트(root #_)가 나타납니다. 이때, 프롬프토 바로 윗줄에 두 가지 중요한 명령어가 표시되어 있습니다. /sbin/fsck -fy (filesystem consistency check and interactive repair) /sbin/mount -uw / 첫번째 명령인 "/sbin/fsck -fy"는 다음에 설명하고, 여기서는 두번째 명령인 "/sbin..
if($a = $b){ } 이것은 아래와 동일 $a = $b; if($a){ }