Posts by Danilo Antunes • 46 points
2 posts
-
2
votes2
answers59
viewsA: Insert string with strtoupper
Try it like this: $chordPretty = (strlen($chord)>1&&substr($chord, 1,1)==='b')? substr($chord, 0,1).'♭' : $chord; If the string has more than 1 character, and if the second character is…
-
0
votes2
answers49
viewsA: Parse error: syntax error, Unexpected ','', expecting ']' in D: wamp64 www PROJETOS- sist-Crop jcrop m2brimagem.class.php on line 40
The right thing would be: $this->extensoes_validas = ['jpg','jpeg','jpe','gif','bmp','png']; If you want to access some specific index of this array, you can use the following: echo…