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
<cfscript> | |
x = [{a:1,b:2,c:3}]; | |
</cfscript> | |
<cfoutput> | |
#structkeylist(x[1])# | |
<cfset q = QueryNew(structkeylist(x[1]), 'string,string,string', x) /> |
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
<cfscript> | |
x = [{a:1,b:2,c:3}]; | |
</cfscript> | |
<cfoutput> | |
#structkeylist(x[1])# | |
</cfoutput> |
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
<cfscript> | |
x = [{a:1,b:2,c:3}]; | |
</cfscript> | |
<cfoutput> | |
#structkeylist(x[1])# | |
</cfoutput> |
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
<cfscript> | |
x = [{a:1,b:2,c:3}]; | |
</cfscript> | |
<cfoutput> | |
#structkeylist(x[1])# | |
<cfset q = QueryNew(structkeylist(x[1]), repeatstring('string',3), x) /> | |
</cfoutput> |
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
<cfscript> | |
var array1 = [{"question":"answer"}, {"firstname":"lastname"}, {"firstname":"lastname", "question":"answer"}]; | |
var array2 = [{"question":"answer"}, {"firstname":"lastname"}, {"firstname":"lastname", "question":"answer"}]; | |
var array3 = [{"question":"answer"}, {"firstname":"lastname"}]; | |
writeDump(serializeJSON(array1) == serializeJSON(array2)); | |
writeDump(serializeJSON(array1) != serializeJSON(array2)); | |
writeDump(serializeJSON(array1) == serializeJSON(array3)); | |
writeDump(serializeJSON(array1) != serializeJSON(array3)); |
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
<cfscript> | |
writeDump( encodeForHTML( "jon@ortussolutions.com" ) ); | |
writeDump( canonicalize( "jon@ortussolutions.com", false, true ) ); | |
</cfscript> |
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
<cfif true> | |
<cfset latestClubId = 'LYC000001'> | |
<cfset numericPart = mid(latestClubId, 4, len(latestClubId) - 3)> | |
<cfset newNumericPart = NumberFormat((numericPart + 1), "000000")> | |
<cfset newClubId = "LYC#newNumericPart#"> | |
<cfoutput> |
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
<cffunction name = "func01"> | |
<cfdump var="#x#"> | |
</cffunction> | |
<cfscript> | |
public function func02() { | |
x = 2; | |
writedump(x); |
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
<cffunction name = "func01"> | |
<cfset x = 1> | |
<cfdump var="#x#"> | |
</cffunction> | |
<cfscript> | |
public function func02() { | |
writedump(x); | |
} |
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
<cfscript> | |
a = now(); | |
dostuff(a); | |
void function dostuff( required date a ) { | |
if ( arguments.a == "" ) { | |
writedump("hi"); | |
} | |
else { |
NewerOlder