Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Andreas Lindner
Added: Jan 26, 2018 5:59 PM
Modified: Mar 14, 2018 12:41 PM
Views: 17
Tags: no tags
  1. if (substr($string, 0, 3) === 'xyz') {
  2.     $trash = 'trash';
  3. }