Created
November 14, 2016 07:33
-
-
Save ayebare/e37e480971938e9c3b1e0630a2b63a1f to your computer and use it in GitHub Desktop.
Searching text data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function is_text_col( $type ) { | |
foreach ( array( 'text', 'varchar' ) as $token ) { | |
if ( false !== strpos( $type, $token ) ) | |
return true; | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment