indexã¯ã第1å¼æ°STRã®å é ãã第2å¼æ°SUBSTRãæåã«è¦ã¤ãã£ãä½ç½®ãè¿ãã¾ãã 第3å¼æ° POSITIONã§æ¤ç´¢ããä½ç½®ãæå®ãããã¨ãã§ãã¾ãã第3å¼æ°POSITIONã«ã¯æåã®æåã 0 ã¨ãã¦æå®ãã¾ãã è¿å´å¤ã¯ 0ããããã¯å¤æ°$[ã«è¨å®ããå¤ã§ããSURSTRãè¦ã¤ãããªãã£ãå ´å㯠-1 ãè¿ãã¾ãã indexã®ä½¿ãæ¹ $str = "How you always hurt the one you love."; print index($str,'you'); > 4
{{#tags}}- {{label}}
{{/tags}}