Posts by Claudio • 221 points
4 posts
- 
		4 votes1 answer164 viewsA: Regular expressions, difference between [-] and -The square brackets (square brackets []) serve to specify character lists to validate (match). In this case there is no difference because you are only specifying one character - But when used with… 
- 
		1 votes2 answers805 viewsA: call function from within the same classYou have to use the $this->, but not as it is using. A class has a structure, you can only call functions using $this-> on the job. Class minhaClasse { $parametro = true; public function… 
- 
		4 votes1 answer71 viewsA: How to iterate php arrayYou must use square brackets. When you access a position of an array you use "[]", when you access an object you use "->". foreach ( $values as $valor => $chave) { echo "Codigo da os insert: "… 
- 
		-2 votes2 answers1225 viewsA: Catch anchor url with PHPIt seems to me that each segment is divided by '/', so it is normal that it does not recognize '#' as a segment delimiter. The following should work. First extract the segment and then isolate the…