Show Menu

Php code templates for NetBeans Cheat Sheet by

Php code templates for NetBeans
php     development     ide     netbeans

Php generics

cls
class ${Clas­sName} { function ${__co­nst­ruct}() { ${sele­cti­on}­${c­ursor} } }
fnc
function ${func­tio­nNa­me}­($$­${p­aram}) { ${sele­cti­on}­${c­ursor} }
iface
interface ${Inte­rfa­ceName} { ${cursor} }
ifnc
public function ${func­tio­nNa­me}­($$­${p­aram});
pcon
parent­::_­_co­nst­ruct(); ${cursor}
thr
throw new ${Exce­ption};
tryc
try { ${sele­cti­on}­${c­ursor} } catch (${Exc­eption} $$${exc}) { echo $$${exc editab­le=­fal­se}­->g­etT­rac­eAs­Str­ing(); }
vdoc
/ @var $$${VA­RIABLE variab­leF­rom­Nex­tAs­sig­nme­ntName defaul­t="v­ari­abl­e"} ${VAR_TYPE variab­leF­rom­Nex­tAs­sig­nme­ntType defaul­t="C­las­sNa­me"} /
 

Php statements

do
do { ${sele­cti­on}­${c­ursor} } while (${CON­DITION variab­leF­rom­Pre­vio­usA­ssi­gnment instan­ceo­f="b­ool­ean­" defaul­t="t­rue­"});
elif
elseif (${CON­DITION variab­leF­rom­Pre­vio­usA­ssi­gnment instan­ceo­f="b­ool­ean­" defaul­t="t­rue­"}) { ${sele­cti­on}­${c­ursor} }
els
else { ${sele­cti­on}­${c­ursor} }
fore
foreach (${ARRAY variab­leF­rom­Pre­vio­usA­ssi­gnment instan­ceo­f="a­rra­y" defaul­t="$­arr­ay"} as $$${va­lue}) { ${sele­cti­on}­${c­ursor} }
if
if (${CON­DITION variab­leF­rom­Pre­vio­usA­ssi­gnment instan­ceo­f="b­ool­ean­" defaul­t="t­rue­"}) { ${sele­cti­on}­${c­ursor} }
inst
if (${VAR­IABLE variab­leF­rom­Pre­vio­usA­ssi­gnment defaul­t="$­var­iab­le"} instanceof ${Clas­sName}) { ${sele­cti­on}­${c­ursor} }
itdir
$$${DIRH newVarName defaul­t="d­irh­"} = opendi­r($­{$d­irn­ame}); if ($$${DIRH editab­le=­false}) { while (($$${­DIR­_ELEM newVarName defaul­t="d­irE­lem­ent­"} = readdi­r($­{DIRH editab­le=­fal­se})) !== false) { ${sele­cti­on}­${c­ursor} } closed­ir(­$$$­{DIRH editab­le=­fal­se}); }
iter
for ($$${IDX newVarName defaul­t="i­nde­x"} = 0; $$${IDX editab­le=­false} < count(­${ARRAY variab­leF­rom­Pre­vio­usA­ssi­gnment instan­ceo­f="a­rra­y" defaul­t="$­arr­ay"}); $$${IDX editab­le=­fal­se}++) { ${sele­cti­on}­${c­ursor} }
swi
switch (${VAR­IABLE variab­leF­rom­Pre­vio­usA­ssi­gnment defaul­t="$­var­iab­le"}) { case ${$value}: ${sele­cti­on}­${c­ursor} break; default: break; }
while
while (${CON­DITION variab­leF­rom­Pre­vio­usA­ssi­gnment instan­ceo­f="b­ool­ean­" defaul­t="t­rue­"}) { ${sele­cti­on}­${c­ursor} }
 

Php print data

eco
echo(“­${m­ess­age}”); ${cursor}
pr
print ${VARIABLE variab­leF­rom­Pre­vio­usA­ssi­gnment defaul­t="$­var­iab­le"}; ${cursor}
prln
print ${VARIABLE variab­leF­rom­Pre­vio­usA­ssi­gnment defaul­t="$­var­iab­le"}."\n­"; ${cursor}
prs
print "­${c­urs­or}­";
prv
print "­\${­VAR­IABLE variab­leF­rom­Pre­vio­usA­ssi­gnment defaul­t="$­var­iab­le"} = ".${­VAR­IABLE editab­le=­fal­se}."\n­"; ${cursor}

Download the Php code templates for NetBeans Cheat Sheet

1 Page
//media.cheatography.com/storage/thumb/hoplayann_php-code-templates-for-netbeans.750.jpg

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!

 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          PHP Cheat Sheet
          Yii code templates for Netbeans Cheat Sheet
          Php + Yii code templates for NetBeans Cheat Sheet

          More Cheat Sheets by hoplayann

          Yii code templates for Netbeans Cheat Sheet
          Php + Yii code templates for NetBeans Cheat Sheet
          Bazaar version control system Cheat Sheet