if () { }

0

wpml - show all CPT at archive page, default language if not translated

By Wooden Hammer Antonio Mosciski at Feb 20 2022

1

Grab jQuery library from Google's CDN if failed then pull local version

By Wooden Hammer Paul Treutel at Mar 04 2022

0

stripformslashes: strip extra slashes if magic quotes is on, works with strings or arrays

By Beginner Joey Raynor at Mar 19 2022

1

Wordpress - show featured image with post or a default image if no image set

By Beginner MakSoft at Mar 26 2022

1

jQuery Determine if at least one radio button is checked in a radio group

By Wooden Hammer Felicia Gutmann at Apr 05 2022

0

Simple non-dot.net function to determine if a file exists. Uses the WinBase API.

By Beginner Miriam Herzog at May 12 2022

9

Convert PHP Array to XML or Simple XML Object if you wish

By Double Wooden Hammer Janeandervort at Jun 03 2022

0

Assume that x is a char variable has been declared and already given a value. Write an expression whose value is true if and only if x is a upper-case letter.

By Beginner DonRamon at Feb 24 2021

0

given an array of integers arr, write a function that returns true if and only if the number of occurrences of each value in the array is unique. using hashmap

By Beginner Edgar Mueller at Aug 19 2020

0

def batting(balls,runs): points=runs/2; if runs>50: points=points+5; if runs>=100: points=points+10; strikerate=runs/balls; if strikerate>=80 and strikerate<=100: points=points+2; elif strikerate>100: points=points+4; print(points)

By Beginner Handsome Hoopoe at May 16 2020


Related code examples


Code examples by languages