Karthikeya Boyini has Published 2193 Articles

log() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 27-Dec-2019 06:49:59

241 Views

The log() function Returns the natural logarithm of a number.Syntaxlog(num, base)Parametersnum − The value for which you want to calculate the logarithmbase − The logarithmic baseReturnThe log() function Returns the natural logarithm of a number.Example Live DemoOutput0ExampleLet us see another example − Live DemoOutput-INFExampleLet us see another example − Live DemoOutput2.3025850929940.99325177301028Read More

decbin() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 26-Dec-2019 10:38:57

112 Views

The decbin() function converts a decimal number to binary number.Syntaxdecbin(num)Parametersnum − Specifies a number to be converted to binary.ReturnThe decbin() function Returns a string representing the binary number of the decimal value.Example Live DemoOutput111100011001ExampleLet us see another example − Live DemoOutput1100011

cos() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 26-Dec-2019 10:34:00

121 Views

The cos() function Returns the cosine of a number. A numeric value between -1 and 1 is Returned representing the cosine of the angle.Syntaxcos(num)Parametersnum − The specified value in radiansReturnThe cos() function Returns cosine of a number in float. A numeric value between -1 and 1 is Returned representing the ... Read More

atanh() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 26-Dec-2019 10:29:37

115 Views

The atanh() function returns the inverse hyperbolic tangent of the specified number.Syntaxatanh(num)Parameters num − The specified number. Required.ReturnThe atanh() function returns a float value, which is the hyperbolic tangent of a number.Example Live DemoOutputINF-INFExampleLet us see another example − Live DemoOutput1.05930617082321.4722194895832-1.4722194895832ExampleLet us see another example − Live DemoOutput0Read More

PHP timestamp to HTML5 input type=datetime element

karthikeya Boyini

karthikeya Boyini

Updated on 20-Dec-2019 10:47:47

920 Views

For HTML5 input time, in PHP:Exampleecho date("Y-m-d\TH:i:s");OutputThe output would be:2018-28-03T19:12:49HTML with Timestamp would be:

How to detect duplicate values in primitive Java array?

karthikeya Boyini

karthikeya Boyini

Updated on 19-Dec-2019 10:20:51

2K+ Views

To detect the duplicate values in an array you need to compare each element of the array to all the remaining elements, in case of a match you got your duplicate element.One solution to do so you need to use two loops (nested) where the inner loop starts with i+1 ... Read More

How to Convert a Java 8 Stream to an Array?

karthikeya Boyini

karthikeya Boyini

Updated on 19-Dec-2019 08:54:20

447 Views

To convert a stream to an Array in Java -Collect the stream to a list using the Collect interface and the Collectors class.Now convert the list to an array using the toArray() method.ExampleLive Demoimport java.util.Arrays; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; public class J8StreamToArray {    public static void ... Read More

Combining fields in CDS view in SAP ABAP

karthikeya Boyini

karthikeya Boyini

Updated on 16-Dec-2019 07:42:39

3K+ Views

With the use of SAP ABAP 7.5, you can make use of the CONCAT_WITH_SPACE function.ExampleThe above code can be simplified like this:CONCAT_WITH_SPACE( bp.name_first, bp.name_last, 1 )

Using SSO logon tickets in SAPUI5

karthikeya Boyini

karthikeya Boyini

Updated on 16-Dec-2019 07:37:21

365 Views

When your proxy has SSO token, you should use SET-COOKIE header to pass SSO token to the client.Exampleset-cookie: MYSAPSSO2=DFOKJLDM.....AJLBhHcvA%3d%3e; path=/; domain=xxxxx.sap.comIt should be passed to client browser from proxy and domain name has to be changed to the proxy as shown below:set-cookie: MYSAPSSO2=DFOKJLDM.....AJLBhHcvA%3d%3e; path=/; domain=PROXYDOMAIN.comWhen next time your browser calls ... Read More

How to connect to an SAP module?

karthikeya Boyini

karthikeya Boyini

Updated on 11-Dec-2019 10:37:11

370 Views

You can create RFC function module and then call this function module from outside. You can create RFC using T-Code SE37You can use the following link to know more about using RFC function module:https://archive.sap.com/discussions/thread/333645This tells about how you can create an FM in SE37 in Target system enabling Remote-Function Enabled ... Read More

Advertisements