Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the longest built-in functions names ever? [closed]

I'm sick and tired of typing mysql_real_escape_string() due to its extreme length, Wondering if there is more long built-in function names out there?

like image 317
CodeOverload Avatar asked Dec 16 '10 17:12

CodeOverload


2 Answers

I don't know of longer function names in PHP, but in .Net, you got the GetTextEffectCharacterIndexFromTextSourceCharacterIndex method of System.Windows.Media.TextFormatting.TextSource.

But you could use an editor with code completion to keep you from typing. Or even better: use a wrapper class for your MySQL connectivity. This will save you from having to type long function names, reduces the risk of security issues (forgetting to call mysql_real_escape_string or calling it incorrectly), and it will save you lots of migrating if you ever need to shift to another database or need to go using mysqli.

like image 197
GolezTrol Avatar answered Oct 16 '22 00:10

GolezTrol


You can check them out here.

You could get an editor which supports auto-completion.

like image 36
madkris24 Avatar answered Oct 16 '22 00:10

madkris24